note 12972 deleted from function.file by jimw

From: Date: Sat, 08 Dec 2001 22:05:13 +0000
Subject: note 12972 deleted from function.file by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22274@lists.php.net to get a copy of this message
The readfile() and file() functions are NOT identical! Readfile() is binary safe while file() is not. I found this after much frustration when my images were coming up with errors after using the file() function. If you need to read an image or executable, use fread instead.

« previous php.notes (#22274) next »