Re: Getting a pdf to open in Acrobat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
AMEPJAJDOFCDLPGFDOIFAEALCGAA.george.pitcher@ingenta.com">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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux