I can't do readfile() because of lots of bug in IE (Internet Explorer).... "Kevin Stone" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Forget the content length and disposition headers. Just set the content type then output the file.. > > header("Content-type: application/pdf"); > readfile("junk.pdf"); > > - Kevin > > "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > 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