Why wouldn't this function work?
I am trying to generate a random 8 character string....
function gstring() { mt_srand((double)microtime()*1000000); while ($i<8) { $value .= chr(mt_rand(97,122)); $i++; } return $value; }
what happens when you run it?