× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks Griz...

I disabled that whole line and go the same results.

What I would like to do is go back to the name search php after they execute
the php script to read the pdf.
I put a require in and then have sosinq() to call the script. But it errors
out.


When I used the back button, I get an error that the page is expired.

Tom Deskevich

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Grizzly Malchow
Sent: Tuesday, February 02, 2010 1:58 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Open a PDF on the IFS with PHP. Found thissolution
searching on the web.


If you want to open the pdf in the browser, try changing the
content-disposition to inline instead of attachment.

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Tom Deskevich
Sent: Tuesday, February 02, 2010 12:28 PM
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 ...

Follow-Ups:
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.