Automating your copyright info
Seeing this post over at Stylegala reminded me that I have a nifty lil piece of PHP especially for automating copyright information:
<?php $currentyear = date("Y"); $startyear = '2007'; if($startyear==$currentyear){ $copyrightyrs = "$startyear"; } else{ $copyrightyrs = "$startyear - $currentyear"; } ?> <p>© <?php echo("$copyrightyrs"); ?> Martin … Continue reading “Automating your copyright info” 




