$file\n"; // Now grab the desc file and add it to the table for a brief description // of what that code does. $desc_file = $source_directory . $matches[1] . ".desc"; $fp = fopen($desc_file, "r"); $file_desc = fread($fp, filesize($desc_file)); fclose($fp); clearstatcache(); $mtime = filemtime($file); $modified = date("d F Y h:i:s A", $mtime); $content_replace = $content_replace . "$file_desc\n" . "Last modified: $modified\n"; } $content = preg_replace("/CONTENT/", $content_replace, $content); print $content; // Get the last modified time for this file clearstatcache(); $mtime = filemtime($filename); $modified = date("d F Y h:i:s A", $mtime); // Finish the index page with some php to give the last // time this page was modified (overkill...) print "
Modified Last: $modified
"; ?>