John Chow dot Com Free WordPress Installation - Start Your Blog Today!
 

How To Auto Update The Copyright Notice

written by John Chow on January 2, 2009

How to make $593 in less than one hour

Many people may consider this a minor issue but from a branding and professionalism level, making sure your blog has the correct year on the copyright notice is very important. Now that we’re in 2009, it’s time to update that notice.

For most bloggers, this is a fairly simple task of logging onto the blog server and editing the footer.php file. The problem is, because this is done only once per year, many bloggers will forget to do it. However, there is a simple way to make the copyright notice update automatically.

All you have to do is FTP into your blog and open the footer.php file. Find the part with the copyright notice and replace it with the following.

Copyright &copy; <?php echo date(‘Y’); ?> Blog Name

Instead of hard coding 2009 into the copyright notice, you replace it with <?php echo date(‘Y’); ?>, which will automatically pull in the year from your server. Hopefully, your server is showing right year. If not, you’ll have to get your admin or web host to adjust the time. In my case, I like to do my copyright from the year the blog started. The code will look like this.

Copyright &copy; 2005 – <?php echo date(‘Y’); ?> John Chow, Inc.

Now, instead of trying to remember to update the copyright notice at the start of every year, the blog will do it automatically. That is, as long as the clock on the server is correct. :)

Did you enjoy this post? Get John Chow Dot Com updates via email...

Stay up to date with all of John Chow’s tips for making money online and blog posts by subscribing via email. Your email will be kept private and never shared with anyone.

{ 84 comments }

jtGraphic January 2, 2009 at 8:27 pm

That’s exactly what I tweeted back at ya! I guess a bunch of people probably did though?

John Chow January 2, 2009 at 10:09 pm

Ya, I got a bunch of tweet back with the code. The funny thing was, I did the tweet to find out how many people know about this.

jtGraphic January 2, 2009 at 11:00 pm

Well I’m glad I passed the test :)

Chris Jacobson January 3, 2009 at 3:13 pm

Nice tip, John.

I’ll keep this in mind for next year, as I’ve already updated 4 of my sites manually. haha

Nicholas James January 4, 2009 at 9:37 pm

Why don’t you just fix it now, then you won’t have to next year ;)

Marketing Business Review January 4, 2009 at 12:53 am

Hi John,

Thanks, I didnt knew about this code, I have already updated my site.

Ben Pei January 4, 2009 at 8:21 am

Lol most of the new themes come with this intact actually..

Online Writers Needed- Make $200 a day January 3, 2009 at 11:30 am

wow, this is some good info if you are a CEO or the owner of a company. It is also very convient :)

Hussein January 2, 2009 at 8:29 pm

I think I have already read about this in Kevin’s blog at bloggingtips.com :)

The Poker Jerk January 2, 2009 at 8:30 pm

Thanks loser! I have been doing it manually for 10 years on one of my sites.

Just kidding, I’m not that stupid!

Gary January 2, 2009 at 8:40 pm

You sure look pretty stupid though! ;

Canadian Online Flyers January 2, 2009 at 9:59 pm

+1

The Poker Jerk January 2, 2009 at 10:50 pm

Wow you really turn into an asshole online!

Ben Pei January 3, 2009 at 7:41 pm

LOL.. I really enjoy your comments..

Success Factors January 2, 2009 at 8:44 pm

SImple, yet useful. I need to use this on all of my blogs. Updating that copyright thing can be annoying.

Earn Extra Money Online January 2, 2009 at 8:47 pm

Thanks for the great tip! Maybe if I coded more php I’d remember more of the language lol :)

Steven-Sanders January 2, 2009 at 8:59 pm

I’m surprised wordpress doesn’t already do this!

Teknolohiya January 2, 2009 at 9:03 pm

Who knows in the future upgrade :) But I believe Wordpress is not the one responsible for this. It’s the theme coders.

Steven-Sanders January 2, 2009 at 9:07 pm

The only problem I see though is the Y isn’t supposed to have the apostrophes around it.

Olgi Zenullari January 3, 2009 at 6:10 am

That because we are talking about footer.php which is inside your theme. So Wordpress has literally nothing to do with it :-)

Ben Pei January 4, 2009 at 8:22 am

They don’t have to I guess.. So many themes come coded already..

Cindy January 2, 2009 at 9:12 pm

Great tip about the dynamic date. While it might seem like a small thing to some, an updated copyright date is one of the metrics I use when judging the quality of a web site. I guess that makes me a copyright snob.

Cheers!

Erin Matlock January 2, 2009 at 9:22 pm

Thanks for the tip! I’m still new to PHP, so posts like these are always appreciated. I also had to remove the apostrophes like Steven-Sanders to get mine to work.

Happy New Year!

Nicholas James January 4, 2009 at 9:43 pm

http://www.php.net is really useful ;)

Ray Ebersole January 2, 2009 at 9:23 pm

Actually I had to remove the first apostrophe, it looks like a backwards Mac apostrophe. My blog spit it out as an error and when I put in the Windows one it works fine.

Thanks John

uwak January 2, 2009 at 9:44 pm

thanks for the tips and advice…..success bfor your john on 2009

game-girl January 2, 2009 at 10:23 pm

I always use your experience.

Tobias Fransson January 2, 2009 at 10:24 pm

I sure didn’t know about this and yes I had forgotten.

I’m not that surprise I didn’t think about it since I only started
blogging like 5 months ago.

Thanks for the tips, I am starting my ftp program up right this minute!

-Tobias Fransson

Money Is Everywhere January 2, 2009 at 10:25 pm

Thanks for this great tip. I actually had this on my to findout how to do list. Thanks again!

Tobias Fransson January 2, 2009 at 10:29 pm

I just tried it and after checking with my blog I noticed that I had an ugle
sort of ? in front of 2009.

After 1minute of thinking I found the problem.

Original code:
Copyright © 2008 – Tobias Fransson.

The ‘ before the Y in

is what caused the problem. So Solution was quite simple…

Copyright © 2008 – Tobias Fransson.

Allowed it to display nicely.

-Tobias Fransson

Taris Janitens January 2, 2009 at 10:31 pm

another useful tip!! THanks John!!

BlogPave January 2, 2009 at 11:05 pm

Thanks for the tutorial. I am not too lazy to change the copyright, but I might try out your way later. :)

Question: Let’s assume a blog was created in 2008. When the year is 2009, should the copyright statement be: “Copyright (c) 2008 – 2009″ or just “Copyright (c) 2009″?

Tyler Cruz January 2, 2009 at 11:16 pm

Yup, you need to change it from the code John gave:

to:

(Proper single quote in front of the Y).

Tyler Cruz January 2, 2009 at 11:20 pm

Oh, nevermind, didn’t display my PHP code :(

Monty - Sensonize.com January 2, 2009 at 11:31 pm

Your footer code might be html. But I don’t think it matters.. Should work anyway..

Andreas January 2, 2009 at 11:32 pm

You have the copyright regardless of what you right. Unless you write that this belongs to public domain or something. Why even have year?
If you gonna use any date/year use the date of publication.

Monty - Sensonize.com January 2, 2009 at 11:43 pm

Thanks for this John.. I’ll add it today! :) Cheers!

Play Games Win Prizes January 3, 2009 at 12:50 am

Smart move John. I usually manually update this, but at times, manual is better for simple things like this. If the years ever screw up, you may not even know of it.

-Mike

J.D. Meier January 3, 2009 at 1:10 am

How important is it to even have a copyright notice on your site?

I thought it’s assumed … or is it just an SOP?

The only place I thought it makes sense is at the bottom of the feeds so when people scrape, it’s obvious what the original source is.

Cheow January 3, 2009 at 1:18 am

Thanks John for the tips.

I was about going to log on to my wordpress server to change the copyright date but followed your tweet to your blog to learn about this trick.

Cheow

wesley January 3, 2009 at 1:35 am

I’ve now read this at over a dozen blogs.. :)

Buy Flowers Online January 3, 2009 at 2:18 am

instead of trying to remember to update the copyright notice at the start of every year,

wisdom January 3, 2009 at 2:23 am

Useful tip, thanks John, updated, didnt work though with my theme.

wisdom January 3, 2009 at 2:27 am

Well it works if you remove the ‘ and ‘ before and after the Y.

game-girl January 3, 2009 at 2:33 am

Just imagine! That’ s so easy.

TYCP Entertainment Magazine January 3, 2009 at 2:55 am

I’ve had it done the second way for a while. Makes things easier.

Casey @ BwhoUR January 3, 2009 at 5:25 am

Thanks John!

Hey, completely off subject, but your opinion matters, and maybe others will weigh in:

Should I buy a Blackberry or an iPhone?! HELP!

Jim Banks January 3, 2009 at 7:30 pm

iPhone definately.

I even went into a shop to see a few of the new Crackberry’s and they are not a patch on the iPhone.

If you are a big SMS person or send a lot of emails then maybe, but for reading emails and SMS the iPhone is good.

Rahul January 3, 2009 at 5:26 am

Hello John, firstly plz do correct the following error that i’ve found:

Copyright © Blog Name
Copyright © 2005 – John Chow, Inc.

It should be the following:

Copyright © Blog Name
Copyright © 2005 – John Chow, Inc.

the error is in the (‘Y’)

again, thanks for this simple trick. cheers.

David Hobson January 3, 2009 at 5:56 am

This is something i have to get round to doing.

Erik January 3, 2009 at 6:03 am

Do U.S. law require a copyright notice? :O

Mike January 3, 2009 at 7:16 am

No you are not required to give a copyright notice, but it is always good practice. If you had to prove the content was your property, server logs and domain whois information could be used in court.

US Copyright Law states that any work created is protected instantly.

Learn English Online January 3, 2009 at 6:33 am

Good tip, thanks!

Tyler Ingram January 3, 2009 at 7:12 am

John if you looking to show people PHP code or code in general you should get Dean’s Code Highlighter so that it shows the proper characters like single quotes etc as well as colour codes the syntax

An example of how to highlight PHP on my blog if you’re interested

ZK@WebTrafficROI.com January 3, 2009 at 5:48 pm

thanks this has been helpful

BusinessX January 3, 2009 at 7:46 am

I have noticed that a number of themes have included this automatically. So, some people may already be automatic.

Will have to go my sites and check. Also, like your idea of putting the start year too.

Taris Janitens January 4, 2009 at 8:00 am

I personally have the start year indicated by my archive set!! I’m looking forward to when my archives go back 4 years like Johns does!! ehehhe

Webmasterstown.Com January 3, 2009 at 7:49 am

I think most of templates now already have this automated feature, however it was already on my theme :P

Money Money Money January 3, 2009 at 8:44 am

Yup most themes are on that but my site http://www.motorbeam.com/ still shows 2008, just speaking to my host to update their timings.

ZK@WebTrafficROI.com January 3, 2009 at 5:51 pm

all templates should have this feature

James Ting January 3, 2009 at 8:32 am

Thanks for the tip. This save me lots of time.

Enduring Wanderlust January 3, 2009 at 9:01 am

Great tip. Though I use Year-present.

RobRoy January 3, 2009 at 9:31 am

Thanks again

PTCBlogger January 3, 2009 at 3:40 pm

Thanks for the tip! I did forget to change the year on my blog, haha!

Graeme January 3, 2009 at 4:14 pm

The autodate! – if you were Amazon then you would try and patent that technique.

Pheak Tol January 3, 2009 at 5:30 pm

Thanks for the helpful tip. something so small yet so major

ZK@WebTrafficROI.com January 3, 2009 at 5:47 pm

i think i ll do this now

Seo Creations January 3, 2009 at 6:31 pm

SImple, yet useful. I need to use this on all of my blogs.

ej-web-development January 3, 2009 at 6:42 pm

For some of the website’s I’ve done the client has requested that the footer lists every year since they started business. They say it makes more of an impact for how long they’ve been around.

PHP code for that:

$currYear = date(‘Y’);
$startYear = 2001;
for ($year = $startYear; $year <= $currYear; $year++) {
echo ” $year”;
if ($year != $currYear) echo “,”;
}

daniel January 3, 2009 at 7:05 pm

Thank you very much!

Jim Banks January 3, 2009 at 7:27 pm

Wish I had read this earlier. I spent a ton of time going through some huge sites doing a Ctrl F find and replace in Dreamweaver. For some older sites I hadn’t even put in a php footer.

Thanks for the heads up though.

Taris Janitens January 4, 2009 at 7:56 am

PHP footer is key – gotta update that stuff in BULK hehehe

game-girl January 3, 2009 at 7:34 pm

It is good for big companies.

Ben Pei January 3, 2009 at 7:40 pm

Hey there John, simple and a remindful tip to all bloggers out there… Very important detail actually..

Noobpreneur January 3, 2009 at 7:43 pm

John,

Simple, yet effective tips.

Cheers!

Taris Janitens January 4, 2009 at 7:52 am

I jsut found out that my blog already has an autoupdating date – great news!! hehehe

off-white hat January 4, 2009 at 7:32 pm

dang dude you’re smart

Dan Massicotte January 5, 2009 at 5:51 am

“Hopefully your server is showing the right date”

Imagine if we could all backtrack a year. This year, could be 2008 all over again! OK, I’m done rambling nothingness. ;-)

Great and useful post though, I’m using the code, since I didn’t even have the copyright notice there at all.

Darren Singleton January 6, 2009 at 3:01 pm

Such a simple piece of code, but I forget to perform this task on every single website I create. Thanks for the reminder John – I’m sure this will be of great benefit to a lot of people.

Scott Fox, E-Commerce Success Blog January 8, 2009 at 3:25 pm

Nice tip but unnecessary.

Copyright dates are handy for judging whether a webmaster or site is still active but don’t have much legal relevance.

The United States (and any other country that’s a member of the Berne Convention) doesn’t require a dated copyright notice any longer.

I advise readers of my books and blog not to post one at all. It’s too easy to forget to update it and have your site look stale. (Which this tip would solve!)

Kosol Anusim January 9, 2009 at 7:42 pm

John,

Thank You for this good news.

John A. Simpson January 10, 2009 at 7:13 pm

Yeah. I had to do this on several of the sites at my company last week. I opted for the JavaScript version.

function DisplayCopyright()
{
var dteNow = new Date();
var intYear = dteNow.getFullYear();
document.write(‘© Copyright ‘ + intYear);
}

SEO Tips January 21, 2009 at 12:15 pm

Very funny that I run in to this post I was considering this actual process this morning and whethers its something bloggers have to do. After reading this I have just finished editing my footer now.

Glad I read this, thanks.

The Blogger Source January 28, 2009 at 4:43 pm

Nice tip, I got lucky and remembered this year but I may not next year, oh wait I don’t have to now.