Automatically Updating Copyright Date in Website Footer

Posted on March 15th, 2010 in Website Management & Improvement.
Tags: , , ,

In a previous post I wrote about a quick tip that you can do for updating your website in the new year by adding the current year in your footer copyright notice. Well, here’s a quick trick that will even save you that job, which is great if you have several websites to update or your website is pretty big.

It’s a simple piece of code that you can put in your footer that will take the year from the server and output it onto your website. As long as the server date is up to date you don’t have anything to do.

It took me ages to find this tiny piece of code to use myself and am now implementing it on the jaority of my websites.

The code:

<?php echo date(“Y”); ?>

It’s that simple. Just copy it into the bottom of your page where you have the copyright notice.

Not got a copyright notice? Try this:

<p>Copyright &copy; <?php echo date(“Y”); ?> <a href=””>Website Name</a>. All rights reserved.</p>

This should work on most hosting accounts, although if you have any trouble your hosting company should have some information on getting this to work it their FAQ, knowledgebase or by contacting their support.

Share and Enjoy:
  • Twitter
  • Facebook
  • MySpace
  • Print
  • email
  • PDF
  • Digg
  • StumbleUpon
Published by Ashley

Please note: I don't claim to have all the answers and here on my blog I can only give you ideas and suggestions from my own knowledge and experience within my own niche. Since I know very little about what you do exactly and can only cover a number of angles in each post, if you you can add anything please do so for the benefit of our reader in a comment - I'd be most grateful.

Leave a Comment

Welcome to my Music Marketing blog. I have been actively involved with online promotion for many years now, both professionally and in my spare time, and being an active musician for the best part of 9 years I felt I needed to share my knowledge and experience with those that would be most appreciative and could put it to good use.

My aim here is to combine the two areas into manageable chunks and present tips, ideas and inspiration for anyone wanting to promote their music online and offline and generally get one foot above the rest, set themselves apart from the average and achieve what they want to achieve musically. I'm hoping the information I post here can help you do just that.

Read about how I can help you market your own music.