PDA

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 &quot;Page last modified: &quot;.date( &quot;F jS, Y - H:i&quot;, getlastmod($SCRIPT_URI)); ?>

youŽll find more information about the &quot;date&quot;-function at: http://www.php.net/manual/function.date.php
and about the &quot;getlastmode&quot;-function at:
http://www.php.net/manual/function.getlastmod.php

&quot;$SCRIPT_URI&quot; ist a php/apache variable and &quot;returns&quot; the full path of the file. you can check the available variable here at fq within your cnc (-> server info ->(php module info) &quot;click here for module info&quot;.

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 &quot;Last Updated: &quot; .
date( &quot;D m/d/Y h:i:s a&quot;, filemtime( file_name ) );
?>


-jim