note 18204 added to function.md5
| From: | cjgraham at tachegroup dot com | Date: | Mon, 14 Jan 2002 17:18:17 +0000 |
| Subject: | note 18204 added to function.md5 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24802@lists.php.net to get a copy of this message | ||
Building on the previous example...
To get a nice generated password that is 8 chars:
srand((double)microtime()*1000000);
$gen_pass = substr(md5(rand(0,9999999)), 0, 8);
--
http://www.php.net/manual/en/function.md5.php
http://master.php.net/manage/user-notes.php?action=edit+18204
http://master.php.net/manage/user-notes.php?action=delete+18204
http://master.php.net/manage/user-notes.php?action=reject+18204