Maybe try this one:

$id_length = 32;
$id = 0;
srand ((double) microtime() * 1000000);
$Puddle = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";

for($index=0; $index < $id_length - 1; $index++){
  $id .= substr($Puddle, (rand()%(strlen($Puddle))), 1);
}

Put it all to class function and thats all.





-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to