Problem with $time variable
Posted: Mon Aug 25, 2003 9:24 am
I don’t understand it but before a certain time in the morning the listen live box and now on air script do not function
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…
That’s my code I’m using to test if the selection is working…..
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;