// Something to generate the resume page. // PJ Waskiewicz, 4/16/2001 // resume.php $filename = "/home/waskiewicz.org/www/scripts/resume.html"; $resume_doc = "/home/waskiewicz.org/www/resume/resume.doc"; $fp = fopen($filename, "r"); $page = fread($fp, filesize($filename)); // Get the last modified time for the resume clearstatcache(); $resume_mtime = filemtime($resume_doc); $resume_modified = date("d F Y h:i:s A", $resume_mtime); // Get the last modified time for this file clearstatcache(); $mtime = filemtime($filename); $modified = date("d F Y h:i:s A", $mtime); // Replace the UPDATED text with the resume mtime $page = preg_replace("/UPDATED/", $resume_modified, $page); print $page; // Finish the index page with some php to give the last // time this page was modified (overkill...) print "