Jump to content

kgp

New Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

kgp's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi I did not se this in any posts and it seems to be a good script. It was supposed to be in somthing I bought but instaed they just put it in a video. Problem is I am getting an error in the if statement, or at least that is what it is telling me. Anyone know what is wrong with it? Appreciate your help in advance Thanks <?php $siteA ="http://www.yoursite.com/A.html"; $siteB ="http://www.yoursite.com/B.html"; $switchtime = "2011-03-14 06:44:00"; $k = strtotime($switchtime); $t = (int)date('U') /* DEBUG */ //echo date("y-m-d h:i:s T",$k); //echo "<br/>".date("Y-m-d h:i:s T",$t); /* */ if($t<$k) header('location: '.$siteA); else header('location: '.$siteB); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.