The Last Post Of 2008

December 23, 2008 by · Comments Off on The Last Post Of 2008
Filed under: General Chat, How To Guides, Humour 

It’s the 23rd of December, and relatives have started to appear at random unannounced intervals, some come bearing gifts, others do not. It can only mean one thing – it’s Christmas!

It’s the annual event that allows me to break away for the computer (for a couple of hours at a time anyway!)  and argue with family members:

Dan: “I’m watching TV, play on the xbox later”

Dan’s Brother: “Shut up, you always get to watch TV”

Dan: “Move the xbox into your bedroom”

Dan’s Brother: “Know you are said you are but what am I”

Dan: “What?”

Dan’s Brother: “Know you are said you are but what am I”

And repeat for 7 days.

Despite the constant arguing I do tend to use Christmas as a bit of a break, I do answer emails and support requests, but I won’t be doing any blog or website updates until after the 1st January 2009, so this is going to be the last post of 2008!

As I feel it’s been a good year content wise for this blog, I’m going to show you a blog post that is almost a year old and that will be very useful for you at this time of year.

The post shows you how to automatically update your Copyright notices so they show the correct  Year. Check it out here:

An Easy Way To Change Website Copyright Dates

That’s all I have for today, all that’s left is for me to thank every single one of you that’s read the blog, or purchased any of my products in the past year, have a very Happy Holiday season and I’ll be back to inform/entertain/bore/annoy you in 2009!

Have a good one!
Dan

A Quick Way To Change Your Copyright Dates

January 10, 2008 by · Comments Off on A Quick Way To Change Your Copyright Dates
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?

Because you have OLD COPYRIGHT NOTICES ON YOUR WEBSITE!!”

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 😉

PHP

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!

Regards,
Dan