Tom: ...nochmal Danke!

Beitrag lesen

...nochmal Hallo und nochmal Danke!

Hab jetzt mal eine Mischung aus Euren Vorschlägen gemacht:

<?php
mt_srand ((double)microtime()*1000000);
$letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$password="";
for($i=0;$i<8;$i++)
{
 $password.=substr($letters,mt_rand(0,strlen($letters)-1),1);
}
echo $password;
?>

Tom