[Techtalk] Web site setup

Magni Onsoien magnio+lc-techtalk at pvv.ntnu.no
Thu Apr 21 16:55:22 EST 2005

On 2005-04-20 22:40:59 -0700, Akkana Peck said:
> require, not include).  But is there any way to avoid having to
> set $updated in every file?  I tried to use something like 
> Last modified: <?php print("$datemod") ?>
> in the included footer, but all I could get it to do was print the
> last-modified date of the footer file, not of the file including
> it.  Is there any PHP way to say "the last-modified date of the
> html file (not the PHP include) currently being shown" ?

I use <? echo Date("Y-m-d", getLastMod())?> in my footer.inc
See http://www.php.net/getlastmod for documentation and gotchas.

Magni :)
sash is very good for you.

More information about the Techtalk mailing list