PHP Copyright Date – auto updating

&copy; <?php echo  (date('Y') == 2007) ? '2007' : '2007-' . date('Y'); ?>

Replace all “2007” years in the above code with the beginning copyright year and the rest will be updated to the current year.

Looks like:
© 2007-2012

And if your initial copyright year is the current year it will simply look like the following until the next year:
© 2012

Insert your name or company name after that and voila – a copyright date for the bottom of your site that you don’t have to go in and update each year.