Re: header() function for displaying an opened PDF document.
From: Scott Fletcher (scott_at_abcoa.com)
Date: 10/13/03
- Next message: Scott Fletcher: "Re: php convert html to pdf"
- Previous message: Scott Fletcher: "Re: Problem with session_destroy() don't work"
- In reply to: Kevin Stone: "Re: header() function for displaying an opened PDF document."
- Next in thread: Bertrand Moulard: "RE: [PHP] header() function for displaying an opened PDF document."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: php-general@lists.php.net Date: Mon, 13 Oct 2003 17:42:30 -0400
I can't do readfile() because of lots of bug in IE (Internet Explorer)....
"Kevin Stone" <kevin@helpelf.com> wrote in message
news:20031013212351.6750.qmail@pb1.pair.com...
> 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" <scott@abcoa.com> wrote in message
news:20031013210743.86299.qmail@pb1.pair.com...
> > 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.
>
- Next message: Scott Fletcher: "Re: php convert html to pdf"
- Previous message: Scott Fletcher: "Re: Problem with session_destroy() don't work"
- In reply to: Kevin Stone: "Re: header() function for displaying an opened PDF document."
- Next in thread: Bertrand Moulard: "RE: [PHP] header() function for displaying an opened PDF document."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|