note 46311 added to function.mhash

From: Date: Wed, 06 Oct 2004 18:29:20 +0000
Subject: note 46311 added to function.mhash
Groups: php.notes 
Request: Send a blank email to php-notes+get-78088@lists.php.net to get a copy of this message
If you want a list of hashes *guarateed* to work on a particular server (as not all servers will have the exact same versions of PHP and Mhash available), here's how to get it: <html><head><title>Supported hashes</title></head><body> <ul><?php $hashes = array(); $count = mhash_count(); for ($i = 0; $i <= $count; $i++) $hashes[mhash_get_hash_name($i)] = mhash_get_block_size($i); ksort($hashes); foreach ($hashes as $k => $v) echo "<li>$k (block size $v)</li>\n"; ?></ul> </body></html> ---- Manual Page -- http://www.php.net/manual/en/function.mhash.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46311 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46311&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46311&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#78088) next »