I couldn't find anything in the manual, but I don't think crypt() works in windows...or at least 95/98. Or the function may be denied in your PHP.ini for some reason.
---John Holmes... > -----Original Message----- > From: Anthony Ritter [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 23, 2002 10:25 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Crypt() =or= md5() > > 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> > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php