note 42488 added to function.crc32

From: Date: Tue, 18 May 2004 18:41:23 +0000
Subject: note 42488 added to function.crc32
Groups: php.notes 
Request: Send a blank email to php-notes+get-69785@lists.php.net to get a copy of this message
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); } ?> ---- Manual Page -- http://www.php.net/manual/en/function.crc32.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42488 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42488&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42488&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69785) next »