Add an Automatic / Dynamic Copyrighted Year Message in PHP
Instead of manually updating the copyrighted message every year, you can add a dynamic and automatic copyrighted year message at the bottom of your website. To do so, include the following code at the bottom of your php files just before the body tag.
<?
$year= date('Y');
echo("Copyrighted ©$year W3courses.com");
?>
Related Articles
- Php Mail Function with Html Header
- How to check if an email address exists without sending an email?
- Pass Array from Multipart/Form-data Post Method or Query String with Foreach Function in PHP
- Use in_array function to check if a value exists in an array using PHP
- Loop through an Array using Foreach Function in PHP
- Delete File or an Image from the Server using PHP
- Encrypt Decrypt using the Rijndael 256 Mcrypt Function in PHP
- Encrypt Decrypt using the Rijndael 256 Mcrypt Class in PHP
