PHP Automatically Changing Copyright Year

By gilbitron in PHP on 25/02/2009 at 05:35

Views: 437
Tagged: php, date

Starter:

Add this to your website footer so you don't have to update it every year.

Main Course:

Copyright &copy; <?php echo date('Y'); ?> Example.com.

Expand Report Code | Install Coda Clip

Please log in to vote.

Compliments to the Chef

No comments yet...

How was your Meal?


  • Allowed HTML: <b><strong><u><i><em><a>

  • Why ask? It helps us stop spam comments.