We will soon be switching over to 2009. I was just thinking about how I was going to need to update copyright dates displayed on the sites so I thought I would put out a reminder to other directory owners who want to keep up on this. Happy New Year!
Thanks for the reminder. Should it be the current year only or all years the site has been online inclusive? So for a site launched in 2008 should we change to c 2009 or c 2008-2009?
For all the php heads out there, insert this code where the date should be and never remember to update the year again. <?php echo date("Y");?> Code (markup):
For those using phpLD Edit footer.tpl Add the code - Copyright 2007-{php} echo date("Y"); {/php} PHP:
For those of you using good old fashioned html pages and running on an apache server, add this line to your .htaccess file AddType application/x-httpd-php html Code (markup): and use the php code above. This allows your html pages to act as though they are real php pages through the use of a mime-type
hehe... I dunno why you guys are calling php into a tpl, when you can just SIMPLY USE what smarty already provides.... {$smarty.now|date_format:"%Y"}
I needed this on few of my websites, but never knew this command exists. Thanks pal. Rep+ already added! Happy New Yeaaaaaaaar! Do you know that tv show called BRAINIAC? When it comes to phpLD, Granny(an0n) knows best! lol
I took the liberty of adding it for you. in the footer.php where you have the date: 2007- just add <?php echo date('Y'); ?> after it. It will look like this: 2007-<?php echo date('Y'); ?>