"; echo "sunset: " . $sunset . "

"; echo "now: " . $now . "

"; if($now < $sunset && $now > $sunrise){ $day_or_night = "day"; } else { $day_or_night = "night"; } echo "day or night: " . $day_or_night; // note! // the above function will only work when sunset is before midnight! :) // maybe someday we can write a new version for if we're in iceland in the summer or something! ?>
it is day!!!!!! zzz