<?php
function rand_str($l = 8){
$c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxwz0123456789";
$s = "";
for($i=0; $i<$l; $i++) { $s .= $c[mt_rand(0, strlen($c))]; }
return str_shuffle($s);
}
?>
<?php echo @rand_str(); ?>