$cont){ $cont2 = $cont+1; while ($numero_elementi > $cont2) { $tmp = $arrayfile[$cont]; $t1= filemtime("$path$arrayfile[$cont]"); $t2= filemtime("$path$arrayfile[$cont2]"); if ($t1 < $t2) { $arrayfile[$cont] = $arrayfile[$cont2]; $arrayfile[$cont2]= $tmp; } $cont2++; } $cont++; } */ $cont = 0; while ($numero_elementi >= $cont){ if (($arrayfile[$cont]!="var.php")&&($arrayfile[$cont]!="center.php")&&($arrayfile[$cont]!="")) { $newfile = utf8_decode( $arrayfile[$cont] ); //traduce il .txt in collegamenti web $ref=$path.$newfile; $name=substr($newfile, 2); $path_parts = pathinfo($newfile); //echo $path_parts['dirname'], "\n"; //echo $path_parts['basename'], "\n"; if ($path_parts['extension'] == "txt") { $ref = file_get_contents($ref); $tmp=explode('.',$name); array_pop($tmp); $name=implode('.',$tmp); } // echo "$name
"; } $cont++; } ?>