note 12064 added to function.readfile.php

From: Date: Wed, 21 Mar 2001 11:38:44 +0000
Subject: note 12064 added to function.readfile.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12623@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. http://www.php.net/manual/en/function.readfile.php

« previous php.notes (#12623) next »