|
Posted by Mark D Smith on 10/19/95 11:18
"bebbet" <bebbet@bebbet.nl> wrote in message
news:33c3f$42a988df$d52e9932$13341@news.chello.nl...
> function createpass($chars) {
> $array ("","0","1" etc.....
> while ($i != ($chars+1)) {
> $pass .= rand(1,36);
> $i++;
> return $pass;
> }
> }
>
> then use it like this:
>
> createpass([length chars]);
>
> --
> bebbet
>
>
Hi
a little buggy!
i added
$chrs = array("","A","B",
and fixed the while loop
while ($i != ($chars+1)) {
$pass .= $chrs[rand(1,36)];
$i++;
}
return $pass;
}
now works just fine.
Mark
Navigation:
[Reply to this message]
|