How to automatically update the copyright year in a website (footer) with HTML and PHP

2 Answers

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

<?php
    
/*
run:
  
 © 2015 
 
*/
?>

 



answered Nov 27, 2015 by avibootz
0 votes
echo "<p>Copyright &copy; 1995-" . date("Y") . " yourwebsite.com</p>";


/*
run:

Copyright © 1995-2015 yourwebsite.com
 
*/

 



answered Dec 1, 2015 by avibootz
...