I always laugh at sites that have “old” copyright information on them and I almost forgot to update mine.
No-longer shall I be doing that with thanks to PHP´s little helper in form of the following one-line (I call it) “New Year Update Copyright script” in PHP:
What it does is quite obvious: it outputs the current year, so for instance you could have it say:
(c) 2006 – (php block here)
this would render (c) 2006 – 2008
- hope this helps anyone.
Now as I look at this issue, I wonder if I was smart enough to build that into all my themes. If not, I got some revising to do after I have finished my next exam in January (11th).
Update: bleh I put
in pretty much all my themes, which is stupid I fear – but for now it is noted on my to-do list and will be sorted out with the next wave of updates!
Update: Lorelle put the_time(); too, so I guess I might as well leave it like that.
If you enjoyed this post, make sure you subscribe to my RSS feed!

h4x3d.com does not host any illegal content. Links/Files referred to are for educational purposes only.




2
January 8, 200810:25 pm
January 8th, 2008 10:25 pm
David Airey
That’s a help Jez. I had to manually update mine, so this’ll be going on my to-do list.
Cheers.
4
January 9, 200810:46 am
January 9th, 2008 10:46 am
jez
thanks for your follow-up David, I am more often reading your blog now, there is some real good information on it!
6
January 9, 200811:42 am
January 9th, 2008 11:42 am
David Airey
Thank you for taking the time to comment on my blog. I enjoy the interaction with my readers.
8
March 12, 200911:09 pm
March 12th, 2009 11:09 pm
Cathy
Thanks. That’s very cool. I’m new to php!