I used this like webzone said:
<?php
$string = 'test';
$pass = mhash(MHASH_SHA256,$string);
echo($pass);
?>
And I recieved this error:
Quote
Fatal error: Call to undefined function: mhash() in /fpgs/fpgshttpd/sixthcrusifix/shoutbox2.php on line 3
According to the php.net site
Quote
You need to compile PHP with the --with-mhash[=DIR] parameter to enable this extension. DIR is the mhash install directory.
I would ASSUME that the error you are receiving means that the php installation on this server isn't compiled with that parameter, but that's just an assumption.
Quote from: brainiac744 on January 27, 2006, 06:12:14 PM
According to the php.net site
Quote
You need to compile PHP with the --with-mhash[=DIR] parameter to enable this extension. DIR is the mhash install directory.
I would ASSUME that the error you are receiving means that the php installation on this server isn't compiled with that parameter, but that's just an assumption.
Well then I can't get in trouble for using sha-1 instead of sha-256 in the programming contest.
Indeed, I just checked and mhash is not installed here. I thought it was set up, but that might have changed since the fire or my memory is not that good after all.
mhash support has now been added.
Thank you,
FreePgs.com Admin
Quote from: admin on January 29, 2006, 10:15:09 PM
mhash support has now been added.
Thank you,
FreePgs.com Admin
Awsome thanks :D