Auto Update Copyright Tag

It seems like outdated copyright tags in the footer of Websites are becoming an increasing issue online. Here are a couple of basic ways to make the tag dynamic to always display the correct information and updated year.

1. JavaScript (Current Year)

2. JavaScript (Original Year – Current Year)

2009-

3. PHP (Current Year)

< ?php echo "© ".date("Y"); ?>

4. PHP (Original Year – Current Year)

2009-< ?php echo "© ".date("Y"); ?>

With a little script implementation, everyone can keep their copyright tags up to date and avoid any unnecessary embarrassment.

You May Also Like

Piwik Review

Piwik is an open source alternative to Google Analytics and is open for developers to build their own plugins for their unique web analytics needs. [Demo] Piwik has a similar…
View Post