Follow Me on Twitter!

For those who like to put Copyright [year] in footer might like this trick. It is just simple trick by using php date function. Usually we see a copyright at footer like this:

Copyright © 2004 – 2006 www.website.com

But when the next year come, you have to edit the footer for the next year. But with php, it will save your time. Just put this code:

  1.  
  2. Copyright © 2004 –  <?php echo date("Y") ?> <a href="http://www.website.com">www.website.com</a>
  3.  

in your footer and you no need to update your footer every year. It will automatically change to the current year.

[via WPMalaysia][tags]php, copyright, auto update[/tags]

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to StumbleUpon

Subscribe me feed! If you enjoyed this article, get latest updates via RSS feed or by email.

Leave a Reply