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
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($
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
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
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
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
--
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
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
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
9 matches
Mail list logo