Auto Copyright - Set It Forget It

Nice piece of code, but can I ask, and this may seem like an uber noob question, but anyways...


Why is it only good until 2034?

~|ChaRoN|~
 
Thanks Popzzz, I was just thinking the other day, there must be a script around that will do this. To have to update many sites can be a pain in the ass, and so not all sites get updated. Perfect timing for me!
 

It's not 2034 but 2038 after thinking about it and the answer would be an ulta uber geek answer LOL!

It's the Unix Millennium Bug, Y2K38 or Y2.038K.

See more info at: wikipedia.org

Enjoy ..... :cool2:


 

It's not 2034 but 2038 after thinking about it and the answer would be an ulta uber geek answer LOL!

It's the Unix Millennium Bug, Y2K38 or Y2.038K.

See more info at: wikipedia.org

Enjoy ..... :cool2:



hehe, well, i do consider myself an uber geek, even if I'm not quite up to the standards of some on the forum, I'ts just way over my head ;) especially coding and programming, but its something I want to get into.

Thanks for the link, and I shall read with gusto :)

~|ChaRoN|~

EDIT: It seems that the 2038 issue is much more serious than it sounds lol :o Theyre gonna need to find a solution or it looks like theres gonna be some serious mayhem lol
 
Last edited:
Here's a version using php. Should work forever. Just move the function to the top or into an include page and paste the copyright code anywhere you want. Maintainance free.

Code:
<?php 

function copyright()
{
	$startYear = '2001'; # set this for the start year of the copyright, the current year will update automatically
	$thisYear = date('Y');
	if($startYear == $thisYear) 
	{
	    return $startYear; 
	}
	else 
	{
	    return $startYear.' - '.$thisYear; 
	}
}

echo 'Copyright ' . copyright() . ' YOUR SITE NAME<br />' . PHP_EOL;

?>
 
Here's a version using php. Should work forever. Just move the function to the top or into an include page and paste the copyright code anywhere you want. Maintainance free.

I was only kidding about the year 2038 thing (not sure) but if it is affected your PHP version will be affected as well because they both use the system 'Date ()'.

My version will work on ANY page not just PHP.

Enjoy ..... :cool2:


 
Last edited:
Back
Top