Re: Corrupted ZIP files (downloaded via a php script) : Internext Explorer 7

From: Date: Thu, 17 Jul 2008 13:04:01 +0000
Subject: Re: Corrupted ZIP files (downloaded via a php script) : Internext Explorer 7
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-276951@lists.php.net to get a copy of this message
At 7:42 PM -0400 7/16/08, robert mena wrote:
Am I doing something wrong or do I have to start looking to the server's configuration (like mod_deflate)?
I use this -- it seems to work: $file="test.zip"; header("Content-type: application/octet-stream"); header("Content-Transfer-Encoding: Binary"); header("Content-length: ".filesize($file)); header("Content-disposition: attachment; filename=\"".basename($file)."\""); readfile("$file"); Anyone see a problem with it? Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#276951) next »