I wrote a test script and tried it on my personal server
http://www.amishmastercrafts.net/am1.php
It successfully echoed the $time variable because the server time is 7:15 so it selected from 7:00
When I use that same script on our webserver
http://ubb.avemariaradio.net/amrwdeonet ... ve/am1.php
It does not echo anything…….This problem is very confusing to me because after some time during the day it just begins to work…
Code: Select all
$date = date("g:i:sa",strtotime("now"));
if(($date >= "6:59:02am" && $date <= "7:29:01am" )){ $time="7:00am"; }
elseif (($date >= "9:59:02am" && $date <= "10:29:01am" )){ $time="10:00am"; }
echo "$date";
echo "<br>";
echo "Working.....";
echo $time;