note 79195 deleted from function.get-headers by danbrown

From: Date: Mon, 09 Jan 2012 19:59:22 +0000
Subject: note 79195 deleted from function.get-headers by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-185495@lists.php.net to get a copy of this message
Note Submitter: eddy at interpc dot fr ---- Because we only want to receive the headers and not a part of the file, I think that " while(!feof($fp)) " should be replaced by something like " while (!feof($fp) && strpos($var, "\r\n\r\n") === FALSE) " Else, testing headers for an image file will get back a useless and time lost part of the image ...

« previous php.notes (#185495) next »