-
Dynamic year footer update
Date: Mar 4, 2011 | Categories: Php | Written By: Jeff Wright
Ok, this one might sound really obvious so apologies in advance, but the amount of footers where I see the year is out of date really drives me mad so i thought i would try and stop this by using this code.
ie - ©Copyright Company 2010
If your web pages are made with php – there is nothing stopping you using a bit of php to update the year dynamically.
©Copyright Company <?php echo date("Y"); ?>
So simple I’m annoyed I missed this for so long.
Tags: php