FYI,
As a matter of course, we provide an option to display a response in pdf format.
However, we noticed that some PC's do not display the document immediately but instead present the Save As/Run dialog first.
This appears to relate to the Adobe Acrobat version, since the issue vanished after downloading the new version of Acrobat.

Peter

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Tom Deskevich
Sent: Wednesday, 3 February 2010 7:28 a.m.
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Open a PDF on the IFS with PHP. Found this solution searching on the web.

header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="'.$pdf.'"');
$path = '/image/smp/'.$c.'.PDF' ;
readfile($path);

Brings up the open dialog, and allows me to open the file with adobe. When I
close adobe, the application ends.
There must be a better way, but at least I have it opening.

Tom Deskevich

*************************************





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.