
One trick that I often use when building a site is to set the copyright year in the footer (or anywhere else you may want it) to always display the current year. This way, in the future you don’t have to worry about remembering to update it manually.
Here’s how to do it in PHP:
1 |
Copyright <?php echo date("Y") ?> Some Company. All rights reserved. |
Do you find this snippet helpful? Have questions or suggestions? Let me know.
photo credit: opensourceway via photopin cc