FreePgs.com Forum

FreePgs Related => Support Requests => Topic started by: sixthcrusifix on January 27, 2006, 05:45:39 PM

Title: mhash Function Doesn't Exist???
Post by: sixthcrusifix on January 27, 2006, 05:45:39 PM
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

Title: Re: mhash Function Doesn't Exist???
Post by: 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.
Title: Re: mhash Function Doesn't Exist???
Post by: sixthcrusifix on January 27, 2006, 07:54:27 PM
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.
Title: Re: mhash Function Doesn't Exist???
Post by: webzone (archived) on January 28, 2006, 06:31:42 AM
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.
Title: Re: mhash Function Doesn't Exist???
Post by: admin on January 29, 2006, 10:15:09 PM
mhash support has now been added.

Thank you,
FreePgs.com Admin
Title: Re: mhash Function Doesn't Exist???
Post by: sixthcrusifix on January 30, 2006, 04:44:12 AM
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