I hate having to go in and manually update the year in the footer on websites next to the copyright text. This isn’t anything fancy or new but just something to keep in your brain so you don’t have to go around updating the year every January in your website footers.

Simply use this little bit of PHP and it’ll update automatically:

<?php print date(‘Y’);?>

So, for example your html might look like this:

<p>&copy;<?php print date(‘Y’);?>, Josh Merriam, maker of websites. Don’t steal and stuff.</p>