Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Internet Explorer and PDF in popup error 1

Status
Not open for further replies.

tomvdduin

Programmer
Sep 29, 2002
155
NL
Hi,

I have a PHP script that generates a PDF file. The file is great; I can open it when it's saved.

In Mozilla, when the pdf is generated, the popup is opened with the pdf. In opera, the pdf is opened with Adobe Acrobat reader. In Internet Explorer, however, I get the dialog looking like the dialog when you download a file, saying: Filename: (I see the last part of the URL string)
Filetype: Adobe Acrobat Control for ActiveX
Location (the domainname)

A question is asked if I want to open, save, cancel or want more info. When I click on open or save, IE can't open the file url.

I know IE has a bug with changing MIME-types inside a browser window, but I'm not shure this has something to do with that. It should work!

What can I do? is the ActiveX component for Acrobat reader broken?

Or better: how can I tell a browser not to open a pdf inside a browser, but to open it directly with Acrobat reader?

Thanks for your answer!

Tom
 
PAndersen,

A great find by you sir/madam.
A well deserved star from me.

Bill


 
Hi,

I've been researching this for a long time but I finally got it.
It's to do with IE caching.
Internet Explorer clears the cache before the output is displayed in the browser.
I'm guessing you probably use session functions in your script (cause that's what caused my problems).
If you do, before the line "session_start();", insert the following:
session_cache_limiter("private");
This will force the IE NOT to clear the cache before the output is displayed.
Hope it helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top