Posted By

SeanJA on 08/08/08


Tagged

date copyright


Versions (?)

Copyright Updated


 / Published in: PHP
 

URL: http://seanja.com/blog

Starting from here: http://snipplr.com/view/2534/update-copyright-date-in-php/ I made one that is a little more sussinct (sp?)

  1. <p>Copyright &#169;
  2. <?php echo ($startYear == date('Y'))? (2005) : (2005.' &#045; '.date('Y'))?> SeanJA </p>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: SeanJA on August 8, 2008

Well... that doesnt look too good, apparently it thinks the # is a comment...

Posted By: SeanJA on August 8, 2008

Updated it!

Posted By: Slapshot on August 8, 2008

Why not just do:

Yours is a bit overdone. Theres no point in giving 2005 a variable if it's not going to change.

Posted By: SeanJA on August 15, 2008

Fine... I will :P

You need to login to post a comment.