Copyright… More like Copywrong

Everyday I see outdated copyrights on websites… Everyday.

As developers can we do better?
I think we can.
Let’s harness PHP to write it once and never be out of date again.
So of course this would go (In WordPress) in your footer.php file that sits in your themes directory.
Depending on where you are in your template you may or may not need your php start and end tags.

// set the default timezone to use.
date_default_timezone_set('UTC');
//set variable $today to todays year
$today = date("Y");
//echo it all out to the browser
echo "©" . $today;

Finally a proper date on your website…. Forever!

Now get coding!