I am trying to create a random password script in PHP...I know there should be something like: <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre> $random = "dsfajlfd23424sf"; [/code] Then "dsfajlfd23424sf" would come out to something like: 2352dsf or something like that That is all I know so far. Could someone please help me out? Thanks! ------------------ ICQ Me! (73902680)
On my site I create random passwords like this: <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>// create a random 32 characters long string $random = md5 (uniqid (rand ())); // take a 8 characters long substring as a password $password = substr ($random, 0, 8);[/code] ------------------ Antti Huotari.com/antti/ LinuxWebDevNews.com
Forum Rules
Bookmarks