a proper copyright notice in php

For those of us who run their sites using PHP, here’s a very simple tip that will save you that extra time spent at the end of the year when it’s time to change those copyright notices.

Using the code below, you won’t ever have to change that copyright notice again:

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

Of course, you can implement this in a “footer.php” file that can be place at the bottom just before the ending “body” tag.

< ?php require("./footer.php"); ?>

And never have to change that copyright notice again...



Carlos Rull

Carlos Rull is a musician living in the San Diego area. His interests include Yoga, Eastern Philosophy, Zen Buddhism, and Gardening. He plays drums, piano, and composes New Age & Ambient music, and his albums are available on iTunes and Amazon.com.

4 thoughts on “a proper copyright notice in php

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.