Having some trouble generating the random pass, Anyone have any ideas?
That's just a prototype to test the function.PHP Code:<?php
function random_pass($length)
{
$chars = "abcdefghijkmnopqrstuvwxyz1234567890";
$pass = "";
$charlength = strlen($chars);
$randchar = rand()%($charlength);
while(0<$length)
{
$pass = substr($chars, $randchar, 1);
}
return($pass);
}
$password = random_pass(7);
echo("" . $password . "");
?>
It's basically meant to loop through until there are 7 characters in the pass string but it keeps giving the error:
andCode:Fatal error: Maximum execution time of 30 seconds exceeded in /home/jclabz/public_html/pass.php on line 10
Been trying to debug it for about an hour starting to annoy me alot now.Code:Fatal error: Maximum execution time of 30 seconds exceeded in /home/jclabz/public_html/pass.php on line 8






Reply With Quote
lol.

