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:[EMAIL PROTECTED] Sent: 13 October 2003 22:15 To: [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php