Mi sa che non c'ho capito niente!codice:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>ESTRAZIONE!</title> </head> <body> LA MAPPA SCELTA E': <? $dir = 'mappe'; $nomi_file = array('map1.txt','map2.txt','map3.txt','map4.txt','map5.txt','map6.txt','map7.txt','map8.txt','map9.txt','map10.txt');//creo l'array che conterrà tutti i nomi dei files if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $tot_files = count($nomi_file);//conta il numero di file nell'array $nomi_file[rand(1,10)] = $file;//accodo nell'array tutti i nomi dei files } } closedir($handle); } ?> <?php echo ("buon divertimento!") ?> </body> </html>![]()