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)

1 Star2 Stars3 Stars4 Stars5 Stars ← Rate!


One thought on “Automatic Year in the site’s Copyright notice

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>