View Full Version : Last Update Script
Beethoven
10-10-2000, 07:10 AM
Hi,
Anyone knows a php-script for the 'last update' message (by grabbing it's upload-date) ?
Thanks,
Jan[nbsp]
andreas
10-10-2000, 12:55 PM
hi...
i use
<? echo "Page last modified: ".date( "F jS, Y - H:i", getlastmod($SCRIPT_URI)); ?>
youŽll find more information about the "date"-function at: http://www.php.net/manual/function.date.php
and about the "getlastmode"-function at:
http://www.php.net/manual/function.getlastmod.php
"$SCRIPT_URI" ist a php/apache variable and "returns" the full path of the file. you can check the available variable here at fq within your cnc (-> server info ->(php module info) "click here for module info".
if you are not a site owner here at fq you can check the php-variables with
<? echo phpinfo(); ?>
hth
greetings
a n d r e a s
[This message has been edited by andreas (edited 10-10-00@12:13 pm)]
jimbo
10-10-2000, 02:04 PM
I use this on my page templates:
<?php
print "Last Updated: " .
date( "D m/d/Y h:i:s a", filemtime( file_name ) );
?>
-jim
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.