Re: [PHP] Create PDFs with a strict layout automatically

2007-11-27 Thread David Christopher Zentgraf
On 27 Nov 2007, at 17:57, Brady Mitchell wrote: FPDF is a great way to go - I've used it for other projects. Thought I'd share this method so you'd have more options. :) Very much appreciated. :o) I do want to include graphics dynamically as well, not just form data, so I think your approa

Re: [PHP] Create PDFs with a strict layout automatically

2007-11-27 Thread David Christopher Zentgraf
On 27 Nov 2007, at 14:09, Brady Mitchell wrote: I had a similar situation where I needed to fill in the blanks on an existing PDF file. I used the createFDF function from http://koivi.com/fill-pdf-form-fields in combination with pdftk (http://www.accesspdf.com/pdftk/) to merge the fdf data

Re: [PHP] Create PDFs with a strict layout automatically

2007-11-26 Thread David Christopher Zentgraf
On 27 Nov 2007, at 12:25, Bastien Koert wrote: you could also look at http://www.digitaljunkies.ca/dompdf/ Looks alright, but I'm wondering whether the results might be more accurate by laying the PDF out "by hand", instead of going through an intermediary step with CSS? I was also looking

Re: [PHP] Create PDFs with a strict layout automatically

2007-11-26 Thread David Christopher Zentgraf
On 27 Nov 2007, at 11:51, Chris wrote: There are a few packages you can use. http://pear.php.net/package/File_PDF http://www.fpdf.org/ are two I know of, I'm sure there are more. Thanks! The built-in PDFlib functions didn't seem to appealing, but FPDF looks pretty good. I'll certainly play

[PHP] Create PDFs with a strict layout automatically

2007-11-26 Thread David Christopher Zentgraf
Hi, I want to offer visitors of my site the possibility of downloading printable, foldable pocket guides for certain things that come out of my database. The problem is that items will be entered into the database very frequently, so I need to automate the process of creating these guides

Re: [PHP] Rendering problem (IE browser on windows + php on linux host)

2007-11-03 Thread David Christopher Zentgraf
What about comparing the pure HTML output of both servers _including headers_, for example with curl? On 3 Nov 2007, at 23:46, Erick Paquin wrote: Hi All, If someone has seen this before it would greatly help me. I have done a php site at work on my windows server. The site renders perfectl

Re: [PHP] crop an image

2007-10-31 Thread David Christopher Zentgraf
Copying half a pixel? I dare say that's where the problem is. Chrs, Dav On 31 Oct 2007, at 19:34, Merlin wrote: Hi there, I do have a small problem with the proportions of image copy The image is originally vertical in 100px width and 141px height. Now I want to crop it to 80 px width and 60

Re: [PHP] Re: Stopping objects from auto-serializing

2007-10-31 Thread David Christopher Zentgraf
On 31 Oct 2007, at 17:23, hochprior wrote: I got the following in my main .htaccess (and it works just fine...): php_flag register_globals 0 Well apparently I'm not allowed to override register_globals. Looking at the problem a little closer, it also doesn't seem like register_globals is th

Re: [PHP] Stopping objects from auto-serializing

2007-10-31 Thread David Christopher Zentgraf
t;bar" $foo = "12345"; $var = ""; function test() { $foo = "67890"; } test(); After execution finished $_SESSION["foo"] is now "12345", but there's no $_SESSION["var"]. What's going on here? On 31 Oct 2007, at

Re: [PHP] Stopping objects from auto-serializing

2007-10-30 Thread David Christopher Zentgraf
On 31 Oct 2007, at 16:16, Jochem Maas wrote: are you using session_register()? (dont) also are you setting the value in $_SESSION by reference? No and no. The only time I'm writing to $_SESSION["basket"] is by setting $_SESSION["basket"][] = "foo", I'm never touching the actual $_SESSION[

Re: [PHP] Stopping objects from auto-serializing

2007-10-30 Thread David Christopher Zentgraf
On 31 Oct 2007, at 15:32, Jochem Maas wrote: aside from this error (my guess is your not allowed to override it) I can't see the problem of serialization .. don't put the object in $_SESSION? ... what are you doing? show us the code? I'm not putting the object in $_SESSION, but PHP apparen

Re: [PHP] Stopping objects from auto-serializing

2007-10-30 Thread David Christopher Zentgraf
On 31 Oct 2007, at 13:50, Larry Garfield wrote: Try: php_value register_globals Off Same Apache misconfiguration error. Even though the host actually requires me to enable PHP processing via an "AddHandler" .htaccess directive, php_flag/value directives are throwing an error. Weird. ..

[PHP] Stopping objects from auto-serializing

2007-10-30 Thread David Christopher Zentgraf
Hi, I'm trying to set up my PHP app at my host, but am stumbling over the PHP configuration there. register_globals is enabled, which seems to auto-serialize my objects into $_SESSION, which in some cases overwrites variables in there. I'm not sure if register_globals is where the auto-se

Re: [PHP] Re: [PHP-INSTALL] MySQL connector installation/upgrade problems

2007-10-23 Thread David Christopher Zentgraf
On 23. Oct 2007, at 21:07, Colin Guthrie wrote: No, I reckon Jul 5th could be about right when was .45 released? I had it in my head it was august but Jul doesn't seem too far before that so entirely possible. Ah sorry, I was thinking about source installs. RPMs keep the original cre

Re: [PHP] Re: [PHP-INSTALL] MySQL connector installation/upgrade problems

2007-10-23 Thread David Christopher Zentgraf
On 23. Oct 2007, at 20:33, Colin Guthrie wrote: If you compile PHP and it finds v3 of mysql that means that you must have the old development libraries for mysql 3 installed in some capacity (I believe). What is the output of: rpm -qa --nosignature --nodigest | grep -i mysql This should give

Re: [PHP] MySQL connector installation/upgrade problems

2007-10-23 Thread David Christopher Zentgraf
On 23. Oct 2007, at 19:55, Martin Marques wrote: Wouldn't it be easier to upgrade to CentOS 5? We tried to explain that to our host, but their service *major expletive*, and other hosts in Tokyo ain't better either. :-( Chrs, Dav -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] languages and PHP

2007-09-27 Thread David Christopher Zentgraf
Your biggest problem will be if you accept any kind of user input which could be in any kind of language. Depending on your server configuration you'll probably have some serious cleaning and filtering to do. I often have to employ this line for example: foreach (array_keys($_POST) as $key) $c

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-26 Thread David Christopher Zentgraf
On 26. Sep 2007, at 16:45, Nathan Nobbe wrote: i hate to suggest it, but you might want to take a little time and investigate what other restrictions you host has. if the list is long you may want to consider a move. it may seem arduous now, but the longer you wait the more arduous it will

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-26 Thread David Christopher Zentgraf
On 26. Sep 2007, at 16:14, mike wrote: On 9/25/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: i try to stay away from it if i can. i think the same of SOAP. in my opinion a shower is the only place for soap. Well put. :-D I, too, fail to see what's so terribly special about it. -- PHP Gene

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-26 Thread David Christopher Zentgraf
On 26. Sep 2007, at 15:26, Nathan Nobbe wrote: i just read the first message in this thread and NuSoap immediately came to mind. though it will solve your problem you may end up like me, hating to use NuSoap under duress. i think it was really popular back in th php4 days when there was n

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-25 Thread David Christopher Zentgraf
On 26. Sep 2007, at 13:19, mike wrote: i've downloaded PEAR packages before and used them manually. all PEAR is is PHP object code modules in a central place. nothing special, really. you just have to tweak some script paths and you can use include/require on the files like normal. That's w