Automatic Year in the site’s Copyright notice

If you happen to deal with a website template having the copyright year (the four digits at the bottom of virtually every www page on earth) hardcoded as a number in its PHP files, replace it with the following string:

<?=date("Y")?>

and you’ll be surprising your visitors with great immediacy every year in its very first minutes!

(requires “short tags” enabled in PHP configuration)



Subscribe to New stories via RSS
Also on STEREO:

One Response to “Automatic Year in the site’s Copyright notice

Leave a Reply