8 bit check sum???? Not 32 bit

From: Date: Wed, 16 Jan 2002 19:33:38 +0000
Subject: 8 bit check sum???? Not 32 bit
Groups: php.general 
Request: Send a blank email to php-general+get-80802@lists.php.net to get a copy of this message
Hello all, I currently have a perl subroutine that uses an 8 bit check sum. From what I have found, in books and the site, php will only do 32 bit. Here is what I have currently sub _hash_domain { return uc( unpack('H2', pack('C', unpack("%8C*", shift) ) ) ); } This works fine in perl but I would like to get this to work in PHP What am I missing. Thanks for you help Brian C. Doyle

« previous php.general (#80802) next »