Skip to content

Double Check The Year In Your Footer

With the new year comes a very easily remedied problem: many web sites still say 2009 in their footer. You can either hard-code the year in the footer.php page in your site’s template and manually update each January 1st. Or you can add this bit of php code:

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

in place of the year and the year will always be accurate.

One Comment

  1. Steve says:

    It seems like hard-coding the year would give the server one less thing to do, and it’s only something that needs updating once a year. Still, changing that seems to be something some web sites I visit can’t keep up with, so I guess that would be handy for them.