Serving ZIP files to IE using PHP

From: Eric Ellsworth (ez_at_e)
Date: 03/31/04


Date: Wed, 31 Mar 2004 12:12:08 -0500

Hi,
I've been wrestling for several months now with this issue in IE:
http://support.microsoft.com/?kbid=308090

(IE thinks that ZIPs sent from a script are corrupt when they are not).
  IE now also seems to think that many other files are ActiveX controls
and pops up the "Some files may damage your computer...Open Save
Cancel" dialog.

However, I am quite certain that others have managed to use a script
serve ZIPs, PPTs or PDF files to clients using IE, as I saw download.com
do just that a moment ago.

I am currently using IIS and a Windows-ized version of mod_rewrite to do
URL rewriting so that IE in theory should not know that it is receiving
a ZIP file from script. Nonetheless, the error occurs even with
rewriting invoked. The problem seems to be that after IE pops up its
security dialog, it does not issue another HTTP request, but seems to
expect to go get the file.

Can anyone give me advice on how to do this? A tutorial, a newsgroup
thread, anything would be useful...

Thanks,

Eric



Relevant Pages

  • Re: zip files
    ... So basically no additional zips. ... The script works great when there are more zips in the ... > dim arrMatches ' Store matches of zip file strings in text file vs. ... > Redim Preserve arrZIPNames ...
    (microsoft.public.scripting.vbscript)
  • Re: Serving ZIP files to IE using PHP
    ... > (IE thinks that ZIPs sent from a script are corrupt when they are not). ... PHP Classes - Free ready to use OOP components written in PHP ... PHP Reviews - Reviews of PHP books and other products ...
    (comp.lang.php)
  • Re: Serving ZIP files to IE using PHP
    ... Eric Ellsworth wrote: ... > (IE thinks that ZIPs sent from a script are corrupt when they are not). ... If this isn't what you did, you could sent a content-type header telling the ...
    (comp.lang.php)
  • Serving ZIP files to IE using PHP
    ... (IE thinks that ZIPs sent from a script are corrupt when they are not). ... URL rewriting so that IE in theory should not know that it is receiving ...
    (php.general)
  • Re: [opensuse] downloading 10.3
    ... 32 bit x86 DVD but the iso file seems to be corrupt. ... Here is that script, note that this is all one line and the secondary ... script in the same directory as the download destination. ...
    (SuSE)