How to create php code to automatically detect and update website copyright © year.
Website copyright year means the copyright notice of website which shows the bottom of web page inside footer section. When developers create fully large scale dynamic content website then there is also a need to automatically updated copyright year notice that can be updated automatic without changing the code. So here is the complete step by step tutorial for Automatically update Automatically update CopyRight year in php.
Automatically update CopyRight year in php website footer example.
Code for Automatically-Copyight-year.php file.
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Automatically update Copyight year in php</title> </head> <body> <h3>Automatically Update Copyight Year</h3> © 2015-<?php echo date("Y");?> </body> </html>