show the correct year on copyright

I’ve had a few people ask me this today, with it being 2009! How to automatically set their copyrights in their site footers to the correct year. Obviously changing every single site you own is a pain.

This requires that the site is using php.

Copyright ©2003 - <?php echo date("Y");?> 3DPixel Ltd.
will give
Copyright ©2003 - 2009 3DPixel Ltd.

No need for updating!

One Response to “show the correct year on copyright”

  1. show the correct year on copyright | PHP-Blog.com Says:

    [...] original here: show the correct year on copyright Related ArticlesBookmarksTags Rekursive Joomla Image Slideshow Da die Slideshow jedoch [...]

Leave a Reply

You must be logged in to post a comment.