Julian Klewes

New Year, update copyright script/code php

Tagged

Categorized
Dated 2 years ago






Times read: 453
Read today: 4
Read last: March 13, 2010

New Year, update copyright script/code php

popup tail

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.


People asked me to put up a donate button or something similar, so here it is: if you care to buy me a beer or Red Bull (I drink the Dutch equivalent called Spam Energy), feel free to donate, anything is appreciated!



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

Interact - Leave a comment

Engage in the conversion and leave a comment.
I would much love to hear from you. Please note however that comments are moderated by default. Advertising and rant is welcomed, yet often discarded...
See left/right for additional information













2

2 years ago
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

2 years ago
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

2 years ago
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

1 year ago
March 12th, 2009 11:09 pm

Cathy

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

comment? jump to the form



archives | sitemap
contact | tos

Top

lorem

solarVPS.com - reliale enterprise hosting
you know the game, get in touch with me
3