note 43069 deleted from function.sha1-file by nlopess

From: Date: Sat, 27 Nov 2004 21:08:42 +0000
Subject: note 43069 deleted from function.sha1-file by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-81099@lists.php.net to get a copy of this message
Note Submitter: Vincent ---- Here is a handy way to get sha1 of a file's contents. <?php function sha1_of_file($file) { if (!file_exists($file)) return false; $contents = join("",file($file)); return sha1($contents); } ?>

« previous php.notes (#81099) next »