un'altra interessante potrebbe essere:
nel tuo caso chiaramente richiamerai gen_pw (20)Codice PHP:function gen_pw ($len) {
$poss="01234567890abcdefghilmnopqrstuvzABCDEFGHILMNOPQRSTUVZ";
$pw = "";
for ($i = 0; $i < $len; $i++) {
$char = substr ($poss, rand (0, strlen ($poss)), 1);
$pw .= $char;
}
return $pw;
}
![]()

Rispondi quotando