Re: [PHP] Problems with Zip+IE6
- From: frank@xxxxxxxxxxxx ("Frank M. Kromann")
- Date: Tue, 12 Dec 2006 09:04:16 -0800
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.didn't
unfortunatelly, it's not mentioning about zip files concretely, I
find a solution for my problem with them.extention
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
of the file to determine the type (microsoft's way...) so it doesn'tmatter
if I use "application/octet-stream" or even "application/force-download"or
"application/makethisdownload-or-ikillyou" :-D as long as I name thefile "
whatever.zip", IE6 shows the "open with" dialog and if I use "open" withan
application, it fails :(send
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
downloadto
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
couplethe
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
unfortunatelyworkarounds in forums over there and I tried them, but
"application/x-zip-compressed"they
didn't work:
1 - To change the mimetype (when writting http headers) from
"application/zip" that I used before to
.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?
- Follow-Ups:
- Re: [PHP] Problems with Zip+IE6
- From: "Richard Lynch"
- Re: [PHP] Problems with Zip+IE6
- Prev by Date: php redirection..
- Next by Date: Re: copying objects to an array
- Previous by thread: php redirection..
- Next by thread: Re: [PHP] Problems with Zip+IE6
- Index(es):
Relevant Pages
|