$greenbrae_sunset) { header("Location: where_to_locate_if_its_friday.php"); } } if($day == "Saturday") { /* Next code checks if current time is bigger then greenbrae sunset time. */ if(time() > $greenbrae_sunset) { /* Next code checks if its not bigger then sunset_time+one_hour, if it isnt then it redirects you to site where_to_locate_when_its_saturday.php btw, knowing that 3600000 is one hour in milliseconds helps us :P */ if(($greenbrae_sunset()+3600000) < time()) { header("Location: where_to_locate_when_its_saturday.php"); } } } ?>