Hello,
On my web site, I use a classical php script to allow file download after registration. Since IE7 has been installed, I cannot (and my clients neither) use IE to download files (FireFox or Opera still work fine, IE6 worked fine too).
Message is:
"Internet Explorer cannot download ....
IE was not able to open this internet site. ...either unavailable or cannot be found."
Here is a simple PHP script to illustrate my problem:
< php
header("Cache-Control: no-cache");
header("Content-Type: image/jpeg"); // or "application/download"
header("Content-Disposition: attachment; filename=myImage.jpg");
header("Content-Description: Download image"); // or program
$filename = "img.jpg"; // or 'myprogram.exe'
readfile($filename);
>
I suppose some new security feature is in play, but I could not find any information.
Can somebody help
Thank you

My php download script does not work anymore
prakal
It still works on FF2 but not anymore on IE7 (0 bytes download)
DanR1
header("Content-Disposition: attachment; filename=myImage.jpg");
narend
The most likely problem is your no-cache header-- consider changing this to "private" or "max-age: 60". Is this page sent via HTTPS
stallion_alpa
....change your security settings for the site in question to "intranet".
(Internet Options, Security, Intranet, Sites, Advanced)
Xelestial
Not acceptable... Telling the user to change the security setting for a site so that they can download a file is unbelibably user un-friendly. Not only that, but the error message doesn't even inform the user that the problem is a security level setting. There has GOT to be a better way.
~D
vgrigor
Paul Bradley
Sarguna
Found a more reasonable solution...
Use the following session cache limiter command BEFORE your session start.
session_cache_limiter('public');
More discussion on this topic can be found at:
http://us2.php.net/manual/en/function.session-cache-limiter.php
~D