note 13037 deleted from function.readfile by jimw

From: Date: Tue, 02 Jul 2002 01:15:16 +0000
Subject: note 13037 deleted from function.readfile by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-32483@lists.php.net to get a copy of this message
On my win32 system, I found that readfile doesn't appear to open the file in binary mode, giving unexpected results when trying to process a binary file. A successfull workaround was to use:<br> // readfile($filename); $fp=fopen($filename,"rb"); fpassthru($fp); flush(); <br> Which does have the expected effect. [editors note: This was fixed in 4.0.5]

« previous php.notes (#32483) next »