Automatically update Copyright year in php website footer example

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.

android-project-download-code-button

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>


&copy; 2015-<?php echo date("Y");?>

</body>
</html>

Screenshot:

Automatically update CopyRight year in php website footer example

Click here to download Automatically update Copyight year in php website footer example project file with source code.

Leave a Reply

Your email address will not be published. Required fields are marked *