Auto-updating copyright year in footer with PHP

less than 1 minute read

PHP logoUsually we visit some pages in which the year in the footer isn’t the current year. This recurrent problem can be easily solved replacing the current-year-place with this PHP code:

<?php echo date("Y"); ?>

Simple as milk.