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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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

Reply via email to