0)) { $FileNames[]=$file_name; } } closedir($dir); $Loop=0; $TheMonth=0; rsort($FileNames); while ($Loop"; $fp = fopen($dir_name.$file_name, "r"); $theDate = fgets($fp, 4096); $lin = fgets($fp, 4096); $lin = fgets($fp, 4096); $lin = fgets($fp, 4096); fclose($fp); $ref .= $lin; $ref.="
".$theDate."

\n"; echo $ref; $Loop++; } ?>