Posted By

pufftenticle on 02/04/08


dates footer

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Auto Year Update For Footer

 / Published in: PHP

this will add the copyright circle thingy, the founded date (year) and the current year (updated automatic-like) for the footer of your site.

  1. &copy; DATE - <?php echo date('Y');?> WEBSITE NAME

Report this snippet  


RSS Icon Subscribe to comments
Posted By: tamriel on February 4, 2008

Thats pretty lame ... better would be something like:

function year ($startyear) { if ( date('Y') == $startyear ) { return $startyear; } else { return $startyear . ' - ' . date('Y'); } }

You need to login to post a comment.