Not sure if this will help you or not...I threw a simple script that will generate random passwords to a specified length, that you specify.
<?
/
Created by www.CodeHeadz.net 2001
*/
$form = "
<FORM METHOD=\"POST\" ACTION=\"$PHP_SELF\">
Password Length: <INPUT TYPE=\"text\" name=\"len\"><BR>
<INPUT TYPE=\"submit\" name=\"submit\" value=\"submit\">
";
function randpw($length) {
$possible = '0123456789~!@#$%&()_+' .
'abcdefghijklmnopqrstuvwxyz' .
'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
mt_srand((double)microtime() 1000000);
$str = "";
while(strlen($str) < $length) {
$str .= substr($possible, mt_rand(0, strlen($possible) - 1), 1);
}
return $str;
}
if($len) {
$this = randpw($len);
echo "<FONT FACE=\"Verdana\" Size=\"2\">".$this."</FONT>";
echo "<BR><FONT FACE=\"Verdana\" Size=\"1\"><A HREF=\"javascript:history.go(-1)\">Back</A></FONT>";
} else {
echo $form;
}
?>