function createhash(){ $hash = ''; $base = str_shuffle("abcdefghijklmnopqrstuvwxyz1234567890"); for($i=0; $i<100; $i++){ $rand = mt_rand(0, 35); $hash .= $base[$rand]; } return($hash); }