Getting a pdf to open in Acrobat
| From: | George Pitcher | Date: | Wed, 10 Sep 2003 13:47:18 +0000 |
| Subject: | Getting a pdf to open in Acrobat | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-21344@lists.php.net to get a copy of this message | ||
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