You need PHP web page not static HTML. If your server handles PHP, then use the code below to insert into your website’s footer. Note this will only work with PHP web pages not static HTML.
Current Year Display
This pulls in the current date using server technology, and is really easy to implement instead of manually typing the year every year.© <?php echo date("Y"); ?> Copyright.
Website Start and Current Year
Here you set the date your website was launched, and let the PHP automatically keep the current year up to date.© <?php
$copyYear = 2008; // Set your website start date
$curYear = date('Y'); // Keeps the second year updated
echo $copyYear . (($copyYear != $curYear) ? '-' . $curYear : '');
?> Copyright.
No comments:
Post a Comment