Re: Read a PDF File using php
| From: | Kevin Stone | Date: | Wed, 01 Oct 2003 20:41:12 +0000 |
| Subject: | Re: Read a PDF File using php | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164624@lists.php.net to get a copy of this message | ||
<?
header("Content-type: application/pdf");
header("Content-disposition: attachment; filename=filename.pdf" );
readfile("filename.pdf");
?>
Launching this script will prompt a file download screen if the Acrobat Reader Plugin is not
available on the client browser. Otherwise it will display inside the browser window using the
plugin.
Hope that helps.
- Kevin
"Pushpinder Singh Garcha" <pgarcha@adelphia.net> wrote in message news:0B97D622-F44B-11D7-B5B5-000393874598@adelphia.net...
> No I am not sending any headers to the browser. Any suggestions !
>
> Thanks
>
> On Wednesday, October 1, 2003, at 04:05 PM, Tyler Lane wrote:
>
> >
> > Are you sending a Content-Type header to the browser to let it know
> > what
> > type of file you are sending it?