Posted By

1man on 03/02/09


Tagged

php year copyright update


Versions (?)

Who likes this?

7 people have marked this snippet as a favorite

dsntos
kurokikaze
rezzz
jitendraweb
silentbob84
patrickcole
catrinho


Auto Update Copyright Year


 / Published in: PHP
 

Very simple snippet to include if you want to auto update the year in a page copyright using PHP.

  1. <ul>
  2. <li class="last">&copy; <?php
  3. ini_set('date.timezone', 'Europe/London');
  4. $thisYear = date('Y');
  5. echo $thisYear
  6. ?> Company Name Ltd. All rights reserved
  7. </li>
  8. </ul>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: seloh77 on August 14, 2010

echo date('Y');

You need to login to post a comment.