The year in the copyright message always displays the current year.
<?php
$time = time () ;
//This line gets the current time off the server
$year= date("Y",$time);
//This line formats it to display just the year
echo "Copyright ©" . $year . " YOUR-SITE-NAME | All Rights Reserved";
//this line prints out the copyright date range
?>
<?php
$time = time () ;
//This line gets the current time off the server
$year= date("Y",$time);
//This line formats it to display just the year
echo "Copyright ©" . $year . " YOUR-SITE-NAME | All Rights Reserved";
//this line prints out the copyright date range
?>
0 comments:
Post a Comment