[PHP] LAMP Experts Needed

2006-09-01 Thread Jack Gates
I am looking for some serious coders that want to make a name for 
themselves and/or a lot of money.

I need to talk to any one who is considered an Expert with any of 
these:

Linux
Apache
MySQL or PostgreSQL
PHP, Perl, Python
HTML
CSS
XML
XSL

I am going to convince my employer to replace a very expensive package 
that they are using right now.  This project will take several months 
to complete and then will be on going with a monthly maintenance and 
service.

If you have any interest at all and want to know the details contact 
me.  Send what you can and will do for this project to me at 
[EMAIL PROTECTED]  It is going to be a web interface interacting 
with a very large database.

-- 
Jack Gates http://www.morningstarcom.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Working with an existing PDF doc

2006-09-01 Thread Frank Arensmeier
You seem to use FPDF. Although I never tried working with FPDF, you  
might take a look at http://fpdi.setasign.de/ which is a class that  
extends FPDF.


If you are looking for a library with support for all PDF features,  
maybe PDFlib (http://www.pdflib.com) is the one for you (sure, PDFlib/ 
PDI costs some money. But if you are looking for a lib that has  
support for everything that the PDF format has to offer, PDFlib is  
definitely the lib you want to use.).


/frank

1 sep 2006 kl. 02.42 skrev tedd:


Hi gang:

I can create a pdf document on-the-fly pretty easily, as shown here:

http://xn--ovg.com/pdf

However, what I need is to find out how to open an existing pdf  
document and insert data into it -- does anyone have any experience  
in doing this, or references they can point me to?


As always, mondo thanks for those who reply.

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: remove SimpleXML nodes

2006-09-01 Thread Javier Ruiz

Thanks a lot to all :)

Using DOM I can do what I need. Anyway I was trying the proposed solutions
with SimpleXML but none of them worked for me :(

I tried splitting $key and $value in the foreach command, but when I dump
the xml (with the asXML function) I still have the nodes that I supposed to
delete... And the same using references, cause I think using unset with
referenced variable names doesn't delete the referenced var, it just deletes
the link to the referenced var...

Concretely I tried:

TEST ONE:
foreach ($xmlDatabase as $key = $oneTable) if ($oneTable['name'] == 'one')
unset($xmlDatabase[$key]);
$sourceXML = $xmlDatabase-asXML(); // - node table name='one' is
still there

TEST TWO
foreach ($xmlDatabase as $key = $oneTable) if ($oneTable['name'] == 'one')
unset($oneTable);
$sourceXML = $xmlDatabase-asXML(); // - node table name='one' is
still there


If there's no luck with xml I will use of course DOM for this, but I'm
really curious now :P
Again, thanks a lot for the help.

Javi Ruiz.

On 9/1/06, Curt Zirzow [EMAIL PROTECTED] wrote:
On 8/31/06, Adam Zey [EMAIL PROTECTED] wrote:

Javier Ruiz wrote:
 Hi all,

 So I want to do...

 $xmlDatabase = new SimpleXMLElement($myXML);
 foreach ($xmlDatabase as $oneTable)
 {
   if ($oneTable['name'] == 'two')
   {
  ///   HERE I WANT TO DELETE THE $oneTable NODE
  unset($oneTable);   // -- and this doesn't work...
   }
 }


 any ideas?


The answer is simple, everybody else seems to have missed it. foreach()
makes a copy of the array before working on it. Changes made to
$oneTable would obviously never affect the original. You're just
unsetting a temporary variable that's going to be overwritten next time
through the loop anyhow.

You should have better luck with this code:

$xmlDatabase = new SimpleXMLElement($myXML);
foreach ($xmlDatabase as $key = $oneTable)


fwiw, In php5 you can do something like:

foreach ($xmlDatabase as $key = $oneTable)
//note the  --
 unset($oneTable);


[PHP] Re: Error Handling Library?

2006-09-01 Thread Tony Marston
Take a look at http://www.tonymarston.net/php-mysql/errorhandler.html

-- 
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

Jay Paulson [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 I've been doing some research and was wondering if anyone out there has
 written a library for error handling?  I haven't found anything as of yet
 but would love to hear suggestions!

 Thanks! 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Free Shopping Carts

2006-09-01 Thread Mourad Boulahboub

John Nichel schrieb am 31.08.2006 23:12:
 Jay Blanchard wrote:
 Can we do anything else for you today?

 
 I'm a php programmer and I have a valve knocking in the engine of my 
 car.  Can you fix it?
 

lol

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Functions vs html outpuit

2006-09-01 Thread Dave Goodchild

Hi all, this may seem like a silly question, but I am creating a library of
html form element generation function, for example a textarea fucntion that
takes rows and cols as parameters, a function that generates a day, month
and year select box, etc. My question is - is it significantly to switch off
the parser and emit raw html than calling a function? If it is faster to
just allow the server to send the html I will not bother.

--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk


Re: [PHP] what's all the about then?

2006-09-01 Thread tedd

tedd schrieb:

At 4:34 PM +0200 8/30/06, Jochem Maas wrote:

tedd wrote:

 At 2:19 PM +0200 8/30/06, Paul Scott wrote:

Read up on MVC (Model View Controller) and the front end controller
 design pattern.

 Interesting that someone finally put a name to something we've been
 doing for decades. We used to just call it input, process, and display,
 which to me seems simpler. In addition, if one used IPD, it's acronym
 would at least be in the right order.

seems whenever I write something that resembles a FrontController I end up
with a process() and a display() method ... small world.
No, it's just that these organizational problems have been around 
since the days of rock programming -- that's what Design Patterns 
are, namely trying to identify, organize, and reuse code. That's 
something else we've been doing for decades that has a brand new 
name.
Design patterns arn't new at all! In fact the big book of Design 
Patterns is was written twelve years ago!


Well, 12 years ago is new to me and there are new books being 
published today. And, what I said above about Design Patterns, is 
what you said below.



see: http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29

There's a surprisingly number of old techniques that have been 
given a new coat of paint and sold as the latest model. The key is 
to recognize them, perhaps I should coin a new name for that, maybe 
Concept Evolution, Process Inheritance, or Legacy 
Identification -- but, to really get it accepted, it has to be 
complicated enough to impress.  :-)
Thats what Design Patterns are about. Describe abstract solutions 
for object-oriented problems which dozens of programmers had already 
to solve and present them in a way each programmer understands and 
give them a name which everyone can understand. Its not to impress 
people with complicated ideas but to simplify the communication 
between programmers and give them hints how a problem could be 
solved.


No, you missed my point -- many books written to simplify, don't. 
That's the reason some books are better than others for different 
audiences. Some books appear to have been written to impress peers 
rather than to teach. If you think different, that's OK, but that 
doesn't make my statement less true.


tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] live chat support

2006-09-01 Thread blackwater dev

Does anyone have any recommendations on some good live chat support apps?
These are the ones where someone can go to your site, click a button and
open a chat window with a customer service person.  I'm particularly
interested in ones where we handled the server and everything.

Thanks!


[PHP] Re: Functions vs html outpuit

2006-09-01 Thread M. Sokolewicz

Dave Goodchild wrote:

Hi all, this may seem like a silly question, but I am creating a library of
html form element generation function, for example a textarea fucntion that
takes rows and cols as parameters, a function that generates a day, month
and year select box, etc. My question is - is it significantly to switch 
off

the parser and emit raw html than calling a function? If it is faster to
just allow the server to send the html I will not bother.



I'm not quite sure I understand your question. Are you asking if it's 
faster to parse and process a php script vs. a page of raw HTML?


In that case, OF COURSE SERVING A RAW HTML FILE IS FASTER!!!
Does the server have to do *anything* with the contents of the HMTL file? no
Does the server have to do *anything* with the contents of the PHP file? 
yes! of course! it needs to parse and process it BEFORE it can actually 
server the RESULT of that script.


So, if possible, stick to raw HTML files.
- tul

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Working with an existing PDF doc

2006-09-01 Thread Frank Arensmeier

Tedd,

this issue has been discussed recently on the PDFlib mailing list.  
Search for the topic search  replace on PDF. Archive is here:


http://groups.yahoo.com/group/pdflib/

regards,
/frank
1 sep 2006 kl. 16.33 skrev tedd:

You seem to use FPDF. Although I never tried working with FPDF,  
you might take a look at http://fpdi.setasign.de/ which is a class  
that extends FPDF.


If you are looking for a library with support for all PDF  
features, maybe PDFlib (http://www.pdflib.com) is the one for you  
(sure, PDFlib/PDI costs some money. But if you are looking for a  
lib that has support for everything that the PDF format has to  
offer, PDFlib is definitely the lib you want to use.).


/frank


Thanks, your links were right-on.

All I have to do now is figure out how to do a search and replace  
in a PDF document.


tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: remove SimpleXML nodes

2006-09-01 Thread Adam Zey
It seems there's no way to do this. You can unset certain things in 
simpleXML objects, but it's really strange non-standard behaviour. If I 
have this for an XML document:


?xml version='1.0'?
document
  testfoo/test
  testbar/test
  testbaz/test
/document
XML;

and I run that through simplexml into $xml, then doing unset($xml-test) 
and then exporting again yields this:


?xml version='1.0'?
document

/document

Also, if I echo $xml-test[1], I get bar. But I can't unset anything 
like that. $xml-test says it's an array through var dumps, but it 
doesn't seem to be a real array, only a fake array.


I'm tempted to say it can't be done. One thing you might try is, to do 
the unset, export to DOM using dom_import_simplexml(), use DOM to unset 
the thing, and then use simplexml_import_dom(). Who knows how slow 
that'd be, though.


Regards, Adam.

Javier Ruiz wrote:

Thanks a lot to all :)

Using DOM I can do what I need. Anyway I was trying the proposed solutions
with SimpleXML but none of them worked for me :(

I tried splitting $key and $value in the foreach command, but when I dump
the xml (with the asXML function) I still have the nodes that I supposed to
delete... And the same using references, cause I think using unset with
referenced variable names doesn't delete the referenced var, it just 
deletes

the link to the referenced var...

Concretely I tried:

TEST ONE:
foreach ($xmlDatabase as $key = $oneTable) if ($oneTable['name'] == 'one')
unset($xmlDatabase[$key]);
$sourceXML = $xmlDatabase-asXML(); // - node table name='one' is
still there

TEST TWO
foreach ($xmlDatabase as $key = $oneTable) if ($oneTable['name'] == 
'one')

unset($oneTable);
$sourceXML = $xmlDatabase-asXML(); // - node table name='one' is
still there


If there's no luck with xml I will use of course DOM for this, but I'm
really curious now :P
Again, thanks a lot for the help.

Javi Ruiz.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Connecting to Webdav with php

2006-09-01 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hello,

I am looking to create a small script which can connect to a webdav
server, authenticate and spit back the contents of a given directory
on the server.  What is the best way to do this?  I've bene looking
around and so far haven't found anything.  Thanks!

- --
Aaron Axelsen
[EMAIL PROTECTED]

Great hosting, low prices.  Modevia Web Services LLC --
http://www.modevia.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFE+FuvuucONIvD0AMRAl94AKCjnoLBQ4n/F3kucQD2KiyVcRrqLgCeKOuP
mp8zPv1ktojV2oDmNfnL9jo=
=sIQc
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: live chat support

2006-09-01 Thread zerof

blackwater dev escreveu:

Does anyone have any recommendations on some good live chat support apps?
These are the ones where someone can go to your site, click a button and
open a chat window with a customer service person.  I'm particularly
interested in ones where we handled the server and everything.

Thanks!


-
http://livehelp.stardevelop.com/


http://www.helpcenterlive.com/

-
zerof

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Working with an existing PDF doc

2006-09-01 Thread Silent1

I actually just finished messing around with something like this.
Basically the task was to have a form where users would input stuff
and that needs to be autofilled into a pdf (already created). I used
pdftk (http://www.accesspdf.com/pdftk/) and a php script called
(forge_fdf http://www.pdfhacks.com/forge_fdf/) which would dump the
data to the pdf.

I took the pdf i was given and I added fields to the original pdf that
would get filled in from the form. pdftk allows to to completly
control the pdf, add passwords (user and owner) and restrict the pdf
(edit,print,view) and encrypt it and even flatten the fields.


On 8/31/06, tedd [EMAIL PROTECTED] wrote:

Hi gang:

I can create a pdf document on-the-fly pretty easily, as shown here:

http://xn--ovg.com/pdf

However, what I need is to find out how to open an existing pdf
document and insert data into it -- does anyone have any experience
in doing this, or references they can point me to?

As always, mondo thanks for those who reply.

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] problems with clases, methods, HTML_Template_IT, etc.

2006-09-01 Thread Martin Marques

I'm buidling a system in OOP, and I have a main clase which 
objects in it. One of the objects inside is of type 
HTML_Template_IT, which I use to handle presentation tier.

Now, each time the system gets executed, I get this in my php 
error log:

PHP Fatal error:  Call to a member function get() on a non-object 
in /xxx///lib/Planta.inc on line 135

Line 135 has:

$this-cascara-loadPrincipal($this-tpl-get(todo));

It would seam $this-tpl is not an object, but I put an output 
of is_object($this-tpl) and it gave me true.

The page gets viewed OK, so it's not really a problem of the 
program not working, but I just don't like to have Fatal Errors
in my log files.

BTW I with PHP 5.0.4 (it's what comes with Fedora Core 4), and 
HTML_Template_IT 1.2.1.

--
-
Lic. Martín Marqués |   SELECT 'mmarques' || 
Centro de Telemática|   '@' || 'unl.edu.ar';
Universidad Nacional|   DBA, Programador, 
del Litoral |   Administrador
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] problems with clases, methods, HTML_Template_I T, etc.

2006-09-01 Thread Martin Marques

On Fri, 01 Sep 2006 18:35:45 -0400, Robert Cummings [EMAIL PROTECTED] wrote:
 On Fri, 2006-09-01 at 19:30 -0300, Martin Marques wrote:

 Now, each time the system gets executed, I get this in my php
 error log:

 PHP Fatal error:  Call to a member function get() on a non-object
 in /xxx///lib/Planta.inc on line 135

 Line 135 has:

 $this-cascara-loadPrincipal($this-tpl-get(todo));

 It would seam $this-tpl is not an object, but I put an output
 of is_object($this-tpl) and it gave me true.
 
 Maybe it's the wrong object. Why don't you do a print_r() or
 var_dump() instead of assuming the correct object type? :p

Did a var_dump earlier, and it gave me the HTML_Template_IT object. 
I did a is_object because the error says that: 
Call to a member function get() on a non-object.


 BTW I with PHP 5.0.4 (it's what comes with Fedora Core 4), and
 HTML_Template_IT 1.2.1.
 
 Maybe you should upgrade.

It's in my TODO. I may have to hurry it up. :-(

--
-
Lic. Martín Marqués |   SELECT 'mmarques' || 
Centro de Telemática|   '@' || 'unl.edu.ar';
Universidad Nacional|   DBA, Programador, 
del Litoral |   Administrador
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] problems with clases, methods, HTML_Template_IT, etc.

2006-09-01 Thread Robert Cummings
On Fri, 2006-09-01 at 19:30 -0300, Martin Marques wrote:
 I'm buidling a system in OOP, and I have a main clase which 
 objects in it. One of the objects inside is of type 
 HTML_Template_IT, which I use to handle presentation tier.
 
 Now, each time the system gets executed, I get this in my php 
 error log:
 
 PHP Fatal error:  Call to a member function get() on a non-object 
 in /xxx///lib/Planta.inc on line 135
 
 Line 135 has:
 
 $this-cascara-loadPrincipal($this-tpl-get(todo));
 
 It would seam $this-tpl is not an object, but I put an output 
 of is_object($this-tpl) and it gave me true.

Maybe it's the wrong object. Why don't you do a print_r() or
var_dump() instead of assuming the correct object type? :p

 The page gets viewed OK, so it's not really a problem of the 
 program not working, but I just don't like to have Fatal Errors
 in my log files.
 
 BTW I with PHP 5.0.4 (it's what comes with Fedora Core 4), and 
 HTML_Template_IT 1.2.1.

Maybe you should upgrade.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re: [PHP] Working with an existing PDF doc

2006-09-01 Thread Silent1

Sorry, i was at work but the example i followed is located here.
http://www.accesspdf.com/article.php/20050510131850979

Once you have pdftk compiled/setup this script in the example will
pass the post/get data to the pdf to each field you setup in the pdf.
If need be, i can send you the php i've created based on the example
above. BTW if you're not familiar with pdf's, as i wasn't, you
basically setup in the pdf fields (just like html forms) with names
that you pass data to. You will also need adobe acrobat pro to be able
to edit the pdf's. Hope this helps.


On 9/1/06, tedd [EMAIL PROTECTED] wrote:

Silent1:

That sounds like what I need, but from what I've read (no offense),
it's not possible.

Do you have an example?

tedd


I actually just finished messing around with something like this.
Basically the task was to have a form where users would input stuff
and that needs to be autofilled into a pdf (already created). I used
pdftk (http://www.accesspdf.com/pdftk/) and a php script called
(forge_fdf http://www.pdfhacks.com/forge_fdf/) which would dump the
data to the pdf.

I took the pdf i was given and I added fields to the original pdf that
would get filled in from the form. pdftk allows to to completly
control the pdf, add passwords (user and owner) and restrict the pdf
(edit,print,view) and encrypt it and even flatten the fields.


On 8/31/06, tedd [EMAIL PROTECTED] wrote:
Hi gang:

I can create a pdf document on-the-fly pretty easily, as shown here:

http://xn--ovg.com/pdf

However, what I need is to find out how to open an existing pdf
document and insert data into it -- does anyone have any experience
in doing this, or references they can point me to?

As always, mondo thanks for those who reply.

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problems with UTF

2006-09-01 Thread mbneto

Hi Peter,

I am returning XML from my php script so I should use the charset in my XML
header?

The database (which holds the data) should be set to utf8 and the same thing
in the XML header, right?

On 8/28/06, Peter Lauri [EMAIL PROTECTED] wrote:


Hi,

Have you set

header('Content-Type: text/html; charset=utf-8');

in your php script that you call via AJAX?

Best regards,
Peter

PS! I assumed you were not sending any variables with the AJAX request? If
so, you would need to do an utf-8 encoding of the variables and then a
base64 encoding to make sure the arrive correctly. Of course you would
after
that need to decode the variables with base64_decode in your PHP script
DS!


-Original Message-
From: mbneto [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 2:57 AM
To: php-general@lists.php.net
Subject: [PHP] Problems with UTF

Hi,

I have a php based script that is called from a html page via ajax.
Everything runs fine except when I use characters such as á that ends up
like A!

After searching and testing I found that if I remove the
encodeURIComponentfrom the javascript and replace with
escape everything works fine.

So the question is what can I do from PHP side to make it play nice with
those UTF encoded chars generated from encodeURIComponent?  Since escape
is
deprecated I'd like to find out before I have tons of files to change

tks.




[PHP] Organizing php functions

2006-09-01 Thread The Doctor
The question comes up because:

Sort file in the path interfere with one another

which leads to

web page malfunction.

Question: should all php programmes such as drupal be placed
under /usr/local/lib ?

-- 
Member - Liberal International  
This is [EMAIL PROTECTED]   Ici [EMAIL PROTECTED]
God Queen and country! Beware Anti-Christ rising!
New Brunswick kick out the Harper Puppet and VOTE LIBERAL on 18 Sept 2006

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php