News:

Click here for Toll-Free Service for your business starting at $2.00 per month

Main Menu

mhash Function Doesn't Exist???

Started by sixthcrusifix, January 27, 2006, 05:45:39 PM

Previous topic - Next topic

sixthcrusifix

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

Visite me website at http://www.sixthcrusifix.com

brainiac744

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.

sixthcrusifix

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.
Visite me website at http://www.sixthcrusifix.com

webzone (archived)

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.

admin

mhash support has now been added.

Thank you,
FreePgs.com Admin

sixthcrusifix

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
Visite me website at http://www.sixthcrusifix.com