note 18204 deleted from function.md5 by jimw
| From: | jimw@php.net | Date: | Sat, 08 Feb 2003 19:47:13 +0000 |
| Subject: | note 18204 deleted from function.md5 by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-43624@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);