Registros de las últimas 24 horas

\n"; echo "

\n"; echo " "; $registros=array(); $path = "."; $dir=opendir($path); $i=0; while ($leer = readdir($dir)){ if ($leer == "img" || $leer == "." || $leer == ".." || $leer == "index.php" || $leer == "temp" || $leer == "index.php~" || $leer == "Thumbs.db" || $leer == "js" || $leer == "css" || $leer == "mes.php") continue; $registros[$i++]=$leer; } closedir(); rsort($registros); foreach ($registros as $id => $val) { $id2=$id+1; echo " Hace $id2 hora"; if ($id2==1) { } else { echo "s"; } echo ":
"; if ($id == 23) break; } ?>