Dynamic Copyright Date
Ok, we’ve all got the standard copyright notice at the bottom of our web pages, something like © 2009.
© 2009But let’s be honest, nothing looks worse than a copyright statement when the year is out of date! It gives the impression that you don’t care.
You can easily prevent this by using the php date() function:
© <?php echo date('Y'); ?>
Really simple and one less thing to think about. Leave and forget
Other Posts You Might Like :)
5 Responses to “Dynamic Copyright Date”
Leave a Comment


Is the one I use. Slightly more advanced, but lets you have the whole 2008 – 2009 thing, accurate to time-zone
Your tag doesn’t work
Oh bugger, send me your code and I’ll amend your posts
Meanwhile, I’ll have a look at the comment system.
Cheers Scott
The best way at the moment to post code in a comment is to use the pre tag with a lang attribute of either php, css, javascript or html4strict like this:
<body>Cheers for the amendment.