Nick Richardson wrote:
> I'm getting this error:
>
> Warning: mcrypt module initialization failed in /home/www/common.php on line
> 314
>
> When running this code:
>
> <?php
> function encryptPassword($password) {
> $key = randomString();
> $code = mcrypt_ecb(MCRYPT_BLOWFISH_128, $key, $password, MCRYPT_ENCRYPT);
>
> print("$code = enc w/ $key");
> }
>
> encryptPassword("testing");
> ?>
>
> And i can't find any documentation on what might be causing this... anyone
> out there know?
>
Is mcrypt installed in your PHP system?
echo phpinfo();
and look for mcrypt
Michael Kimsal
http://www.phphelpdesk.com
Taking the ? out of <?php
734-480-9961
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php