I scripted it myself, but then somthing went corrupt, and bag im in those moods where the prob is staring you in the face yet you've tried everything.
So if anyone can write one up or find one it would be great!




Posted 26 January 2002 - 11:06 PM
I scripted it myself, but then somthing went corrupt, and bag im in those moods where the prob is staring you in the face yet you've tried everything.
So if anyone can write one up or find one it would be great!
Posted 27 January 2002 - 10:25 AM
<?
if(isset($image)) {
setcookie("header",$image,time()+36000);
}
if(!isset($HTTP_COOKIE_VARS["header"])) {
$image = "header1.gif";
setcookie("header","header1.gif",time()+36000);
}
?>
<img src="
<?
if(isset($image)) { echo $image; } else { echo $HTTP_COOKIE_VARS["header"]; }
?>
">
The problem Im having is that when I reload the site its not showing the "new" header. LIke it wont show whats in the cookie. check it
Posted 27 January 2002 - 10:31 AM
You can try my custom header @ http://techmechanic.net/mine/
Posted 27 January 2002 - 03:14 PM
time()+(60*60*24*365*10)
Which'll give you a 10-year cookie - long enough, I think :D
The longest cookie's I've ever seen set are for Dec 31, 2039. I've seen that a few times, but never further. Is that like the upper limit or something?
