Print A Current Copyright Notice With PHP
One thing that is inexcusable on any website is printing a copyright notice that is out of date. There are many protagonists of this crime and it is fairly easy to spot.
However, rather than go through all of the pages on your site and hand code in the copyright notice you could just put in the following little bit of PHP.
Copyright <?php echo date("Y"); ?> #! code
This will print off a current copyright notice, no matter what the year is.
Copyright 2008 #! code
The date() function is built into PHP and takes two parameters. The first (required) parameter is a format string for the date. In this example we are giving a single capital "Y", which returns a numeric representation of the year with 4 digits.