PHP Code:$hash = base64_encode(mhash(MHASH_SHA1, utf8_encode(str_replace("\'", "''", $new_password))));
I am not getting an error message, rather, my program just freezes and doesnt go anywhere when I have this line in my code.
Anyone have any ideas what might be causing this?
I also have it as follows
and it freezes on mhashPHP Code:$replaced_password = str_replace("\'", "''", $new_password);
echo "passed replace";
$utf_encoded = utf8_encode($replaced_password);
echo "passed utf";
$hash_encoded = mhash(MHASH_SHA1, $utf_encoded);
echo "passed hash";
$base64_encoded = base64_encode($hash_encoded);
echo "passed base64";




Reply With Quote