Re: [PHP] Problems with Zip+IE6



Hello,

if you use:

header("Content-Type: application/zip");
header("Content-Disposition: attachment; filename=\"somefile.zip\"");

That works for me with IE 6/7 and other browsers.

- Frank

damn! that's a pretty good article, thanks a lot.

unfortunatelly, it's not mentioning about zip files concretely, I
didn't
find a solution for my problem with them.
I tried playing a bit with the Content-type, but it seems that Internet
Explorer doesn't really care about "Content-type"... it uses the
extention
of the file to determine the type (microsoft's way...) so it doesn't
matter
if I use "application/octet-stream" or even "application/force-download"
or
"application/makethisdownload-or-ikillyou" :-D as long as I name the
file "
whatever.zip", IE6 shows the "open with" dialog and if I use "open" with
an
application, it fails :(

thanks again Richard for the answer and for the article :)

anybody with a miracle for the ZIP+IE problem??



On 12/5/06, Richard Lynch <ceo@xxxxxxxxx> wrote:

It's kinda long, but this will probably save you some grief:
http://richardlynch.blogspot.com

On Tue, December 5, 2006 2:07 am, Javier Ruiz wrote:
Hi all!

I have a problem with zip files and Internet Explorer 6. I try to
send
to
the user a dinamically generated zip file writting the http headers
and
using file_put_contents for the zip content. It works fine when
downloading
the file with firefox, opera, etc... even it works well if I
download
the
file with internet explorer and then open it with any zip tool. The
problem
comes when I try to directly open the file from the URL using IE6.

I found this is a known bug of IE (several versions) in windows XP:
http://support.microsoft.com/kb/308090

Does anybody know any way to workaround this problem? I found a
couple
workarounds in forums over there and I tried them, but
unfortunately
they
didn't work:
1 - To change the mimetype (when writting http headers) from
"application/zip" that I used before to
"application/x-zip-compressed"
2 - To not use MOD_DEFLATE in apache2 (I was not using it
really...)



Any idea??

Thanks a lot!



--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?



.



Relevant Pages

  • Problems with Zip+IE6
    ... I have a problem with zip files and Internet Explorer 6. ... the user a dinamically generated zip file writting the http headers and ... Does anybody know any way to workaround this problem? ... - To change the mimetype (when writting http headers) from ...
    (php.general)
  • Re: Content-Disposition: "inline" vs. "extension-token"
    ... Assuming that by "reader" you mean the user of the UA, ... HTTP headers. ... I've tried both inline and the specific filename extension ...
    (comp.infosystems.www.authoring.html)
  • Re: Insider Secrets Of Solving Sudoku Puzzles
    ... Playing Sudoku is like playing Golf. ... After visiting this website, I immediately had trouble accessing the ... Internet using Lotus Notes and Internet Explorer. ... and spyware scan, and the scan programs found no problems. ...
    (rec.puzzles)
  • Re: Insider Secrets Of Solving Sudoku Puzzles
    ... cube of the 21st century" or the "fastest growing puzzle in the ... Playing Sudoku is like playing Golf. ... Internet using Lotus Notes and Internet Explorer. ... do HTML, JavaScript, and whatever else. ...
    (rec.puzzles)
  • Fwd: Problems with Zip+IE6
    ... I have a problem with zip files and Internet Explorer 6. ... It works fine when downloading ... Does anybody know any way to workaround this problem? ... - To change the mimetype (when writting http headers) from ...
    (php.general)