Posted By

withinmedianl on 10/16/10


Tagged

date copyright footer


Versions (?)

Dynamic startyear / copyright for footer


 / Published in: PHP
 

echo's: 2008 / 10 - Company name

  1. &copy; <?php ini_set('date.timezone', 'Europe/Amsterdam');
  2. $startYear = 2008;
  3. $thisYear = date('y');
  4. if ($startYear == $thisYear)
  5. {
  6. echo $startYear;
  7. }
  8. else
  9. {
  10. echo "{$startYear} / {$thisYear}";
  11. }
  12. ?> - Company name

Report this snippet  

You need to login to post a comment.