Re: [PHP] PDF: error

2007-04-10 Thread Richard Lynch
That's not an error. That's a PDF in its raw form. This can happen if you didn't put the right headers. It can also happen in IE because IE sucks and "memorizes" the content-type for the URL, so even if you fix it, if you don't close the whole browser down and start over, it thinks it should be

Re: [PHP] PDF: error

2007-04-05 Thread Jochem Maas
you code is *still* borked in pretty much the same way it was to begin with ... there was an error: $error"; } echo 'download it!'; exit; } else { echo 'please login'; } Mário Gamito wrote: > Hi, > >> Where did you get the $data variable? >> as filesize($

Re: [PHP] PDF: error

2007-04-05 Thread Tijnema !
On 4/5/07, Stut <[EMAIL PROTECTED]> wrote: Mário Gamito wrote: > $data = readfile($full); The readfile function does not return the contents of the file. I suggest you RTFM: http://php.net/readfile -Stut I wanted to say that :P. it outputs the file directly to the browser, and returns the num

Re: [PHP] PDF: error

2007-04-05 Thread Mário Gamito
Hi, > Where did you get the $data variable? > as filesize($data) would return false here, and that's not a good > value for the Content-Length header :) Sorry, bad Copy & Paste. I get it from: $data = readfile($full); Result in the browser is: "%PDF-1.4 %âãÏÓ 351 0 obj <> endobj xref 351 434 00

Re: [PHP] PDF: error

2007-04-05 Thread Stut
Mário Gamito wrote: $data = readfile($full); The readfile function does not return the contents of the file. I suggest you RTFM: http://php.net/readfile -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDF: error

2007-04-05 Thread Tijnema !
On 4/5/07, Mário Gamito <[EMAIL PROTECTED]> wrote: Hi, I've managed to make the PDF download system work. But when it opens in acrobat reader, i get the error you can see in: http://www.gamito.org/fucked-pdf-2.jpg The code follows my signature. Any help would be appreciated. Warm Regards --

Re: [PHP] PDF error with pdf_open_png

2001-01-11 Thread Jared Howard
How do I get those log files? I've tried setting error_log, error_reporting, track_errors, & log_errors in /etc/php.ini. It didn't log to the log file I told it to, or log to the system message log. How do I get it to log this error? At 06:02 PM 1/11/01 -0800, Chris Lee wrote: >Its also very h

Re: [PHP] PDF error with pdf_open_png

2001-01-11 Thread Chris Lee
Its also very handy when you get an error like that to check you log files, usually when you get no error and no page like that, php has segfaulted apache, might want to check :) there might be other errors in the log files to help you too. Chris Lee Mediawaveonline.com "Jared Howard" <[EMAIL

Re: [PHP] PDF error with pdf_open_png

2001-01-11 Thread Ignacio Vazquez-Abrams
On Thu, 11 Jan 2001, Jared Howard wrote: > I'm trying to include images in my PDF file using pdf_open_png. (I've also > tried using pdf_open_gif and pdf_open_image_file.) But when I add the line: > > $logo = pdf_open_png($pdf, "$CFG->imagedir/logo.png"); > > I get the error: Cannot find serv