I am trying to create a md5 hash for a string but the problem is that whenever I use md5 function and run the file, it returns a 500 internal error.
the code i am using is
$php_hash_string = md5("test_hash");
When I comment out the file the error is not produced and the rest of the output is printed out but when i use the md5 function it generates 500 internal server error.
Can anyone please help me solve this problem?
Server info: LAMP on CentOS 5.6
make sure that you do yum install php-mcrypt and see if that makes a difference