[Web4lib] Always up-to-date copyright statement

Tom Keays tomkeays at gmail.com
Mon Jan 14 18:45:06 EST 2008


I used to do something like that with my sites too. However, at some
point, I decided it was nice to have a date that showed the year the
site went live up to the present.

Using server-side includes, I do it something like this:

&copy; 1998-<!--#config timefmt="%Y"--><!--#echo var="LAST_MODIFIED"-->

Using php, I do it either (depending on how honest I wanted to be):

&copy; 1999-<?php echo(date("Y")) ?>
or
&copy; 1999-<?php echo(date("Y", getlastmod())) ?>

Tom


More information about the Web4lib mailing list