A Quick Way To Change Your Copyright Dates

January 10, 2008 by · 10 Comments
Filed under: How To Guides 

A Quick Way To Change Your Copyright Dates

So…it’s 2008, it’s scary to think this blog has been on the go for almost 2 years, doesn’t time fly?!

I fully intend to start as I mean to go on, so I’m going to kick of this year with a really, really useful, time saving tip for all of you that have a website and/or blog. Picture this scenario:

“It’s January 1st, you are feeling terribly hung over from the night before, your head is pounding and all you want to do is go back to sleep. But you can’t, why?


OK, so maybe you don’t get THAT worked up about changing your copyright notices, but it is still a job that needs doing, and if you have a lot of websites it could take you a full day to change everything to the new date. You could always leave them with the old year on but that does look a bit unprofessional and lazy.

Luckily there is a quick way to change your copyright notices to the correct year, on auto-pilot. As soon as the clock hits 12.01 on January 1st, your copyright notices will update.

How do we do this?

It’s the magical 3 letter word again…..not that one, the other one 😉


Yes, adding a simple snippet of PHP code to your page will automatically show the correct year to your website visitors. I have already implemented it into this blog, scroll right to the bottom and look at my copyright notice, the notice will always show the correct date, you will need to wait until this time next year to test it out but you can take my word for it!

Now let me show you how to do this.

Open up your web page in your favourite editor (Dreamweaver, Frontpage, NVU etc.) and find the place that contains your current copyright statement (HTML/Code view). Replace the year with the following code:

<?php echo date(‘Y’); ?>

That will automatically display the current year on your page, that’s it, dead simple! Just a quick side note, don’t copy/paste the code direct from this page, WordPress tends to mess up the little quotation marks when you copy/paste!

Here’s an example of the statement on a website I built:

As the code is PHP then you need to make sure that your page is saved with a .php extension, and that your web server is capable of running PHP pages. – If it isn’t, why not check out D9 Hosting?

You can also get your web server to display your .html or .htm pages as PHP, just open up your .htaccess file and add the following line. If you don’t have a .htaccess file, you can easily create your own, just create a new text document and then rename it to “.htaccess”

You should now be ready to add auto-updating copyright notices to your websites. If you haven’t yet updated your 2007 notices why not give it a try?

As always let me know if you have any questions and feel free to leave any comments.

Here’s too a prosperous 2008!