RE: [PHP] header() function for displaying an opened PDF document.
| From: | Bertrand Moulard | Date: | Mon, 13 Oct 2003 22:42:55 +0000 |
| Subject: | RE: [PHP] header() function for displaying an opened PDF document. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166033@lists.php.net to get a copy of this message | ||
now that I'm rethinking of it, I solved the problem by using the brilliant
python program tcpwatch, which logs all the http data going in and out your
browser. Very easy to run and so handy (not only for this problem). Would
find the url for dld if you want.
cheers
.b
-----Original Message-----
From: Scott Fletcher [mailto:scott@abcoa.com]
Sent: 13 October 2003 22:15
To: php-general@lists.php.net
Subject: [PHP] header() function for displaying an opened PDF document.
I seem to be having problem with sending the PDF document to the browser to
be open on screen. I kept getting the error message, it say 'Windows cannot
open this file'. Here's my sample script, so what am I doing wrong?...
--snip--
header("Content-Type: application/pdf");
header("Content-Length: '40736'");
header("Content-Disposition: inline; filename='junk.pdf'");
--snip--
Thanks,
Scott F.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php