Re:Auto password generation
| From: | Liam | Date: | Tue, 26 Mar 2002 21:51:20 +0000 |
| Subject: | Re:Auto password generation | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90167@lists.php.net to get a copy of this message | ||
26/03/2002 9:51:20 PM
<?
$password = substr(ereg_replace("[^A-Za-z0-9]", "", crypt(time())) .
ereg_replace("[^A-Za-z0-9]", "", crypt(time())) .
ereg_replace("[^A-Za-z0-9]", "", crypt(time())),
0, 8);
?>
Random Password : <b><? echo "$password"; ?></b>
"Denis L. Menezes" <menezesd@singnet.com.sg> wrote on 26/03/2002 11:38:14 AM:
>
>Hello friends,
>
>I have a form for registering by the users. This runs on php/mysql.
>
>Can someone tell me how I could include auto password generation and
>emailing of this password to users?
>
>Thanks
>denis
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php