note 12066 rejected and deleted from function.readfile.php by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Wed, 21 Mar 2001 14:03:03 +0000 |
| Subject: | note 12066 rejected and deleted from function.readfile.php by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12638@lists.php.net to get a copy of this message | ||
I've noticed that calling readfile() with an "http://"
filename breaks output buffering (eg, gzip compression) in PHP 4.0.3pl1 - the result is that
headers_sent() returns true.
A workaround is to use fopen/fgets/fclose instead, which works fine with output buffering.