Skip to navigation

Skip to additional stuff


Sunday, January 1, 2006

Update Copyright Statements automatically

Happy New Year! It’s 2006 now, no more 2005. That means you should write 2006 instead of 2005 (who’d have thought? :D).

Did you already update your copyright statements? No? Here is a PHP snippet that saves you time. You never have to care again which year it is. It gives you always the current year. (Those with PHP knowledge will not continue reading, I guess, but nontheless):

<?php echo date('Y'); ?>

Just put this where you want the year (4 digits) to appear.

1:41 pm | Filed under: , No comments posted yet. | the j-blog

Comments on “Update Copyright Statements automatically”

No comments yet.

Leave a comment

Your e-mail address will never be displayed.

(required)

(required)



Navigation



© Copyright Julian Bez 2010. All rights reserved, unless otherwise mentioned.
For your convenience: All times are GMT.
Built with valid things such as XHTML and CSS.

PLEASE NOTE: This site will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device. more info...