PHP Classes

Download in IE generates error

Recommend this page to a friend!

      TAR/GZIP/BZIP2/ZIP Archives  >  All threads  >  Download in IE generates error  >  (Un) Subscribe thread alerts  
Subject:Download in IE generates error
Summary:In IE download fails while in Firefox it works great, why?
Messages:3
Author:Michal Jarocinski
Date:2006-01-31 16:47:25
Update:2008-04-18 07:34:02
 

  1. Download in IE generates error   Reply   Report abuse  
Picture of Michal Jarocinski Michal Jarocinski - 2006-01-31 16:47:25
I used this:

<?php
include "archive.php";

$test = new zip_file("somefile.zip");
$test->set_options(array('inmemory' => 1, 'recurse' => 0, 'storepaths' => 0));
$test->add_files("somefile.php");
$test->create_archive();
$test->download_file();

?>

very simple but I have problem (or IE has problem). It is the metter of header or something? Firefox can manage this. . .

  2. Re: Download in IE generates error   Reply   Report abuse  
Picture of Michal Jarocinski Michal Jarocinski - 2006-02-01 15:11:40 - In reply to message 1 from Michal Jarocinski
ok, now it works
I added
<?php

ini_set('zlib.output_compression','Off');

?>

  3. Re: Download in IE generates error   Reply   Report abuse  
Picture of ruben de vries ruben de vries - 2008-04-18 07:34:04 - In reply to message 2 from Michal Jarocinski
IE7 (and I suppose IE6 has the same problem) can't handle both the

'Content-Disposition:' and 'Cache-Control:' headers at the same time, so remove or comment the Cashe-Control line which is on line 318 in archive.php....