Network Notices
Alphabetical"; print 'Title | Date | '; } else { print "
---|
Date | Title | '; } $files = array(); if ($handle = opendir('.')) { while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != ".." && $entry != "index.html" && strtolower(substr($entry, strrpos($entry, '.') + 1)) == 'html') { $files[$entry] = $entry; } } closedir($handle); $modificationArray = array(); $titleArray = array(); $monthArray = array("January" => "01", "February" => "02", "March" => "03", "April" => "04", "May" => "05", "June" => "06", "July" => "07", "August" => "08", "September" => "09", "October" => "10", "November" => "11", "December" => "12"); #Find the title/date of the file, use it to create an associative array of webpage=>title, webpage=>date foreach($files as $entry) { $lastModified = date('Y/m/d',filemtime($entry)); #$newEntry = array("$entry"=>"$lastModified"); #$modificationArray = array_merge((array)$modificationArray, (array)$newEntry); #Loop through the entire contents of a file line by line $titleline = "
---|---|
$value | $modificationArray[$entry] |
$value | $titleArray[$entry] |