note 26563 added to function.fpassthru
| From: | mikek at rack1 dot php dot net | Date: | Tue, 05 Nov 2002 08:07:32 +0000 |
| Subject: | note 26563 added to function.fpassthru | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38982@lists.php.net to get a copy of this message | ||
Found a workaround to another headache that just cropped up tonight. Apparently Opera 6.1 on Linux
(unsure of other versions/platforms) has problems downloading files using the above methods if you
have enabled compression via zlib.output_compression in php.ini.
It seems that Opera sees that the actual transfer size is less than the size in the
"Content-length" header for the download and decides that the transfer was incomplete or
corrupted. It then either continuously retries the download or else leaves you with a corrupted
file.
Solution: Make sure your download script/section is off in its own directory. and add the following
to your .htaccess file for that directory:
php_flag zlib.output_compression off
--
http://www.php.net/manual/en/function.fpassthru.php
http://master.php.net/manage/user-notes.php?action=edit+26563
http://master.php.net/manage/user-notes.php?action=delete+26563
http://master.php.net/manage/user-notes.php?action=reject+26563