KrnlPanic's Linux Notes and Tips

Working with linux since kernel version 2.0.30

Auto Copyright using PHP date function

Do you own a website with a copyright tag that you’re tired of remembering to update every year? Here’s a very simple method of ensuring that your copyright is up-to-date, and you won’t have to worry about it ever again.

Current year only:
[code]&copy; <?php echo date("Y"); ?>[/code]

Starting year 2010 to current year:
[code]&copy; 2010-<?php echo date("Y"); ?>[/code]