note 27687 added to function.md5-file

From: Date: Mon, 16 Dec 2002 01:57:22 +0000
Subject: note 27687 added to function.md5-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-40941@lists.php.net to get a copy of this message
==== function md5_f($file) { $fp = @fopen($file,"r"); if(is_resource($fp)) { while(!feof($fp)) { $con .= fread($fp,512); } fclose($fp); $con = md5($con); } return (!isset($con))?FALSE:$con; } ==== correction, I seem to have forgotten an "!" when typing it out, not the best way to give help, to get it wrong. Sorry ~Raistlin -- http://www.php.net/manual/en/function.md5-file.php http://master.php.net/manage/user-notes.php?action=edit+27687 http://master.php.net/manage/user-notes.php?action=delete+27687 http://master.php.net/manage/user-notes.php?action=reject+27687

« previous php.notes (#40941) next »