Revision [10464]

This is an old revision of FileModificationTime made by JasonHuebel on 2005-08-06 04:30:43.

 

File Modification Time Action


This action allows you to display the modification time of any file on the filesystem. Save this as actions/filemtime.php:

 <?php
/*
        filemtime action
        Displays the modification time of a file
        Syntax: {{filemtime path="/path/to/file"}}
*/


$path = trim($vars['path']);

if (file_exists($path)) {
        echo "<font size=-2>" . date("M d, Y h:i:s a", filemtime($path)) . "</font>";
} else {
        echo "<!-- ERROR (filemtime): '" . htmlspecialchars($path) ."' not found -->";
}

?>



CategoryUserContributions
There are 6 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki