Output file time : _SERVER « Form « PHP
- PHP
- Form
- _SERVER
Output file time
<?php
$lastmod = filemtime($_SERVER['SCRIPT_FILENAME']);
echo 'This file was last updated on '
. date('l d F Y, \a\t H:i:s T', $lastmod)
. '.';
?>
Related examples in the same category