Sort out your Copyright notice with PHP Date()

by Carey on November 30, 2010

Post image for Sort out your Copyright notice with PHP Date()
  • Share
  • CevherShare
  • Share

A quick and easy improvement to your site is to make sure any copyright notices are accurate. Too often I see websites with Copyright 2006 in the footer and this makes the site look abandoned.

An easy way to solve this is to use:

{code type=php}< ? = date(“Y”) ?>{/code}

Which will output the current year. Include it in your copyright notice as follows and you will always be up to date:

{code type=php}Dev Chunks is copyright 2006 – < ? = date(“Y”) ?>{/code}

Leave a Comment

Previous post:

Next post: