How to create dynamic copyright text with php

By Chris on August 30, 2011 in php, Web Design Snippets
0
0

<?php
ini_set(‘date.timezone’, ‘Europe/London’);
$startYear = 2007;
$thisYear = date(‘Y’);
If ($startYear == $thisYear) {
echo $startYear;
}
else {
echo “{$startYear}-{$thisYear}”;
}
?>

YourWebsiteHere.co.uk</span>

0 Comments

Leave a reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.