Auto-Updating Copyright
Views:
Author: Chris

Code and info


Copyright statements are one of the most important things your site should have but when it comes to a lot of pages and you aren't using a template (shame on you) you can do this simple code snip-it to automatically update your copyright every year



<?

echo "© Copyright 2000 - "date("Y"time()) + 1." All rights reserved.";// date("Y", time()) + 1; MEANS: Y = this year time() just gets the current time, so this year and at the end +1 so 2007 + 1 = 2008!



/*

end result:

© Copyright 2000 - 2008 All rights reserved.

with 2008 automatically updating every year!

*/

?>







1



Comments
You must be logged in or register an account with us before posting a comment.
Statistics
Member Stats Online Members, read legend below: .
Registered Users: 5 registered AND activated.
Member Level Legend NOTE: If the username is underlined it means they may just have the page open and not actually be surfing the site. Administrator
Home

Membership Login

Shout Box

» GO FULL!
Please login to post a shout. » Turn OFF chat!

Point Leader board

© Copyright 2006 - 2008 Tutnation.com and ChrisTheFeral.com