note 42488 deleted from function.crc32 by danbrown

From: Date: Thu, 06 Oct 2011 21:32:27 +0000
Subject: note 42488 deleted from function.crc32 by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-183692@lists.php.net to get a copy of this message
Note Submitter: gribber (_at) hellburner (dot_) net ---- A little correction to the sfv checksum code above, this was confuseing me for a while, heading zeros was striped away. <?php function sfv_checksum ($filename) { return str_pad (strtoupper (dechex (crc32 (file_get_contents ($filename)))), 8, '0', STR_PAD_LEFT); } ?>

« previous php.notes (#183692) next »