Self Updating Footer Code

Ok, so you know the copyright footer that is at the bottom of all websites right? It goes something like this [© 2009 Altec Designs Blog] Well wouldn’t it be nice if you didn’t have to update the year on your footer ever again! I know what you are thinking…. doing something like this must be a technical and difficult process. Actually it is very easy to do. For this technique to work your website must be made in php. All you need to do is insert the following code into your website and you will have instant self updating text that you will never have any need to change because it will constantly be updated.

the code:

© <?= date(‘Y’) ?>

What this code does is automatically display the current year. If you include this in your footer.php file, your wont have to worry about forgetting to update your websites footer and having your website look old and not well maintained ever again. If you have any questions about how to implement this code feel free to drop us a comment below

Leave a reply

Close