Revision [10446]

This is an old revision of FileModificationTime made by JasonHuebel on 2005-08-05 05:07:02.


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:


$path = $this->htmlspecialchars_ent(trim($vars['path']));

echo "<font size=-2>" . date("M d, Y h:i:s a", filemtime($path)) . "</font>"

The syntax is simply:

{{filemtime path="/path/to/file"}}

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