encrypting problems

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fabby
Forum Commoner
Posts: 62
Joined: Tue Feb 15, 2005 1:06 am
Location: Romania
Contact:

encrypting problems

Post by fabby »

i sow on a web page a code who encrypt a text, but i can't use mhash function, and i recieved an error like this:
Fatal error: Call to undefined function: mhash() in E:\server\Apache2\htdocs\data\php.php on line 4

Code: Select all

<?php 
    echo("<h3> Implementing mhash </h3>"); 
    $plain_text = "Damn why won't PHP come naturally to me!"; 
    $encrypted_text = mhash(MHASH_CRC32, $plain_text); 
    echo("<p><b> Encrypted text is : </b>"); 
    echo($encrypted_text); 
    ?>
Why and what to do. When i tryed something from php manula, i recieved a same error. Do you know why?


feyd | please use the formatting tags we provide
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

sounds like it's not installed :: http://php.net/mhash :: read the requirements and following sections.
Post Reply