|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-21 05:06 UTC] hholzgra@php.net
[2002-06-21 05:44 UTC] dariusz at bulgaria dot com
[2002-06-21 06:51 UTC] dariusz at bulgaria dot com
[2002-06-27 06:22 UTC] dariusz at bulgaria dot com
[2002-06-27 06:55 UTC] dariusz at bulgaria dot com
[2002-07-03 08:15 UTC] loe at loe dot at
[2002-09-23 15:13 UTC] iliaa@php.net
[2002-10-14 19:26 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 11:00:01 2025 UTC |
OS: WinXP Pro Apache 2.0.36 PHP 4.2.1 (module) That's my script: $f = "e:/web/old.zip"; header("Content-type: application/zip"); header("Content-Disposition: attachment; filename=old.zip"); header("Content-Length: " . filesize($f)); $fp = fopen($f, "rb"); while (!feof($fp)) { print fread($fp, 1024); } fclose($fp); The script is running on a server in my local 100MBit LAN. The first ~8kB of the downloaded file are always OK, but from there on the file is totally screwed up. Filesize is correct though. Tried the same script with Apache 1.3.26 (also the module version) with basically the same configuration and the download works fine. Switched again to 2.0.36 and the downloads are corrupted again. This seems to happen only with large files (the one I tried is ~11MB).