pageStat.php & pageStat.adp

This PHP script simply checks the last modified time of a file, formats the time and displays it on the page.

<?php
$filemod = filemtime("index.php"); 
$filemodtime = date("m.j.Y@h:i A", $filemod);
echo("Last updated on $filemodtime");
?>


and while we're at it, here's the same thing in Tcl:


<%
file stat "[ ns_info pageroot ]/index.html" updateTime
set updated $updateTime(ctime)
set fileUpdateOn [ns_fmttime $updated "%m.%d.%y @ %I:%M%p" ]
ns_puts "Last updated on $fileUpdateOn   "
%>


slayer.office home