Hey Group,
Try this script out to generate Random Password Easily
Options are:
1. You can add more charactors, numbers or lower case charactors
to '$possible_charactors' is you wish.
2.You can change the string length, for example,
echo 'Random_Password(16);' for 16 charactors.
<?
function Random_Password($length) {
srand(date("s"));
$possible_charactors = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
$string = "";
while(strlen($string)<$length) {
$string .= substr($possible_charactors,(rand()%(strlen
($possible_charactors))),1);
}
return($string);
}
echo Random_Password(8);
?>