Last Updated: February 25, 2016
·
705
· jamierudeboyson

Footer Copyright

I always used to write out:

© 2013 NameOfCompany

until I realised I might as well write:

&copy; <?php echo date("Y"); ?> NameOfCompany

Thanks to pHp, this will output the correct year (in 99.99% of cases)

Now it will always show the right year, I'm always a bit put off when a footer copyright says 2012 / 2011 / 2010 etc. It makes me think they haven't updated in a long time or maybe the company has gone bust or something.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside