Warning: preg_replace(): Compilation failed: escape sequence is invalid in character class at offset 4 in /home/customer/www/theunixtips.com/public_html/wp-content/plugins/resume-builder/includes/class.resume-builder-enqueues.php on line 59

php : Automatically updating Year in Copyright information for a website

Another year gone and it is time to change the copyright information. Here is a quick tip on updating the year automatically. Edit the footer.php or similar file which prints that Copyright information and add to it following php code. Here 2009 is the start year. See the bottom of this page for how this looks like.

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