Is there possible way of not doing of not doing this?
Code: Select all
<br><br>
<?php
$last_modified = filemtime("file.php");
print("Last Modified: ");
print(date("M-j-Y h:i:s", $last_modified));
?>Moderator: General Moderators
Code: Select all
<br><br>
<?php
$last_modified = filemtime("file.php");
print("Last Modified: ");
print(date("M-j-Y h:i:s", $last_modified));
?>Code: Select all
<?php
function lastModified()
{
list($data) = debug_backtrace();
$out = '';
if (isset($data['file']))
{
$out .= 'Last Modified: ' . date('Y-m-d H:i:s', filemtime($data['file']));
}
return $out;
}
?>