RE: [PHP] Crypt() =or= md5()
| From: | John Holmes | Date: | Tue, 24 Sep 2002 02:27:05 +0000 |
| Subject: | RE: [PHP] Crypt() =or= md5() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117355@lists.php.net to get a copy of this message | ||
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:tony@gonefishingguideservice.com]
> Sent: Monday, September 23, 2002 10:25 PM
> To: php-general@lists.php.net
> 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