h4x3d.com

- h4x3d.com

New Year, update copyright script/code php

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.

8 comments
  1. David Airey says:
    Author

    That’s a help Jez. I had to manually update mine, so this’ll be going on my to-do list.

    Cheers.

  2. jez says:
    Author

    thanks for your follow-up David, I am more often reading your blog now, there is some real good information on it!

  3. David Airey says:
    Author

    Thank you for taking the time to comment on my blog. I enjoy the interaction with my readers.

  4. Cathy says:
    Author

    Thanks. That’s very cool. I’m new to php!

Submit comment