Crypt() =or= md5()

From: Date: Tue, 24 Sep 2002 02:25:23 +0000
Subject: Crypt() =or= md5()
Groups: php.general 
Request: Send a blank email to php-general+get-117340@lists.php.net to get a copy of this message
I get the following line when trying to use the crypt() function in php ...................................... Fatal error: Call to undefined function: crypt() in c:\program files\apache group\apache\htdocs\handleform1.php on line 16 ........................................ However, when I replace crypt() with md5() - the following script works fine. Using: Windpws 98 / Apache / php4 ................................................... the script: <HTML> <HEAD> <TITLE> HTML Form </TITLE> <BODY> <? $FirstName=trim($FirstName); $LastName=trim($LastName); $Email=trim($Email); $Comments=trim($Comments); $Name=$FirstName." ".$LastName; print("Your name is $Name<BR>\n"); print("Your e-mail address is $Email<BR>\n"); print("Your comments were:<BR> $Comments<BR>\n"); $CryptName=md5($Name); print("<P>This is the crypt()version of your name: $CryptName\n"); ?> </BODY> </HTML>

« previous php.general (#117340) next »