Navigation :

Home
Source code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links




Site Sponsors :

Bookmark :

Links :

finance products
domain names
programmershelp

Downloads :

Misc :

Webmaster Resources
Only PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming

Valid XHTML 1.0 Transitional


Valid CSS!


generate a random password example

This will generate a random password of a given length, this example is about as easy as it gets for generating passwords

<?php
function generatepassword($len)
{
return substr(md5(rand().rand()), 0, $len);
}
?>

<?php
//this will generate a 9 character password
echo generatepassword(9);
?>