Hi HTH Peter ----------------------------------------------- Excellence in internet and open source software ----------------------------------------------- Sunmaia Birmingham UK www.sunmaia.net tel. 0121-242-1473 International +44-121-242-1473 ----------------------------------------------- function SM_pass_gen() { $consts = 'bcdgklmnprst'; $vowels = 'aeiou'; $symbols = '!%^_£123456789'; for ($x=0; $x < 6; $x++) { mt_srand ((double) microtime() * 1000000); $const[$x] = substr($consts,mt_rand(0,strlen($consts)-1),1); $vow[$x] = substr($vowels,mt_rand(0,strlen($vowels)-1),1); $symb[$x] = substr($symbols,mt_rand(0,strlen($symbols)-1),1); } return $const[0] . $vow[0] .$const[2] . $const[1] . $vow[1] . $const[3] . $vow[3] . $const[4] . $symb[2] . $symb[3]; }//end function -----Original Message----- From: Nikos Gatsis [mailto:nikos@xxxxxxx] Sent: 10 December 2003 13:42 To: PHP-mailist Subject: password generator Hello list Is there any PHP script that generate password with digits from [a-zA-Z0-9] to suggest me? Thanx -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php