undefined function - crypt()

From: Date: Wed, 12 Feb 2003 20:59:51 +0000
Subject: undefined function - crypt()
Groups: php.general 
Request: Send a blank email to php-general+get-135363@lists.php.net to get a copy of this message
Using MS Win98 / PHP /Apache I'm getting a undefined function error - crypt() The following scripts were taken from Larry Ullman's book on PHP on page 60-61. Any advice would be helpful. Thank you. Tony Ritter .................................................. //ullmanform.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>HTML Form</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD> <BODY> <FORM action=ullmanpassword2.php method=post>First Name <INPUT name=FirstName><BR>Last Name <INPUT size=40 name=LastName><BR> E-mail Address <INPUT size=60 name=Email><BR> Comments <TEXTAREA name=Comments rows=5 cols=40> </TEXTAREA><BR> <INPUT type=submit value=Submit! name=SUBMIT> </FORM></BODY></HTML> ............ // ullmanpassword2.php <HTML> <HEAD> <TITLE> Form Results/Using Strings</TITLE> </HEAD> <BODY> <?php /* This page receives and handles the data generated by "ullmanform.html". */ $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 ("This is what you had to say:<BR>\n $Comments<BR>\n"); $CryptName = crypt($Name); print ("<P>This is the crypt() version of your name: $CryptName\n"); ?> </BODY> </HTML> .............. Fatal error: Call to undefined function: crypt() in c:\program files\apache group\apache\htdocs\ullmanpassword2.php

« previous php.general (#135363) next »