Every year some lonely web folks are wasting time updating the copyright dates on their various websites footers. Since we have jumped head first into 2012 lets start the year off right. The following will show you how to use PHP to automatically update your notice.
Display Current Year
<?php echo date(‘Y’); ?>
Add Your Copyright Text
Copyright © <?php echo date(‘Y’); ?> Website Name
I’m sure you will be able to find other areas of your website that could benefit from magical PHP date functions. Take a few minutes now to save yourself from wasted ‘time’ later.
Happy New Year