Views:
Author: Chris
Code and info
Copyright statements are one of the most important things your site should have but when it comes to a lot of pages and you aren't using a template (shame on you) you can do this simple code snip-it to automatically update your copyright every year
<?
echo "© Copyright 2000 - "date("Y", time()) + 1." All rights reserved.";// date("Y", time()) + 1; MEANS: Y = this year time() just gets the current time, so this year and at the end +1 so 2007 + 1 = 2008!
/*
end result:
© Copyright 2000 - 2008 All rights reserved.
with 2008 automatically updating every year!
*/
?>
1