How to create dynamic copyright text with php
By Chris on August 30, 2011 in php, Web Design Snippets
0
1
<?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
You must be logged in to post a comment.