RE: Re: Getting a pdf to open in Acrobat

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

 



Simon,

I have Reader 6 on my Win2k machine. I also have Full Acrobat 5 but I don't
get problems when accessing pdf files at other sites.

For info, I'm not serving this on my machine. Its on an NT machine a couple
of counties away.

George

> -----Original Message-----
> From: Simon Taylor [mailto:simon@genient.com]
> Sent: 10 September 2003 3:19 pm
> To: php-windows@lists.php.net
> Subject:  Re: Getting a pdf to open in Acrobat
>
>
> 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
>
>

-- 
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