Re: Getting a pdf to open in Acrobat
| From: | Simon Taylor | Date: | Wed, 10 Sep 2003 14:19:29 +0000 |
| Subject: | Re: Getting a pdf to open in Acrobat | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-21345@lists.php.net to get a copy of this message | ||
George,
I think you will find that this is the local OS causing the problem. Does it
still do that if Acrobat Reader is installed on the machine browsing?
Cheers
Simon
"George Pitcher" <george.pitcher@ingenta.com> wrote in message
news:AMEPJAJDOFCDLPGFDOIFAEALCGAA.george.pitcher@ingenta.com...
> Hi,
>
> I use the following code to grab a pdf from a different disk and then pass
> it out to a web-user.
>
> = = = = = = = = =
> <?php
> $c_id=$_POST['c_id'];
> $fpd = "E:\\icon_pdf\\" . $c_id . ".pdf";
> $len = filesize($fpd);
> header("Content-Type: application/pdf");
> header("Content-Disposition: inline; filename=$fpd");
> header("Content-Title: $fpd");
> header("Content-Length: $len");
> readfile($fpd);
> ?>
> = = = = = = = = = =
>
> The problem is that it always asks me which application to use to open the
> file. What do I need to do so that 'open' will always launch Acrobat?
>
> Cheers
>
> George