Update copyright year on your blog

While you are celebrating the arrival of the new year, don’t forget to update the year on the copyright notice on your blog. The simplest way is to edit the file and replace 2009 with 2010, but a better solution would be to replace the year in your copyright declaration with following line of PHP code.

<?php echo date("Y"); ?>


This way you don’t have to worry about updating the year in the future. Usually the copyright notice is in the footer so you will have to add this code to your footer.php file.

Enjoy.