How to display different content for different time ranges in PHP?
<p>Trying to write part of a page that would display a streaming player when we are on the air 5a-10a M-F and display something else when we aren't on the air.</p>

<p>Here's what I have right now, but it's not working. I'm pretty new at PHP. Thanks!</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;streaming&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php

//Get the current hour
$current_time = date(G);
//Get the current day
$current_day = date(l);

//Off air
if ($current_day == "Saturday" or $current_day == "Sunday" or ($current_time &lt;= 5 &amp;&amp; $current_time &gt;= 10)) {
echo "We’re live Monday – Friday mornings. Check back then.";
}

// Display player
else {
echo "&lt;a href="linktoplayer.html"&gt;&lt;img src=http://www.psdgraphics.com/wp-content/uploads/2009/09/play.jpg&gt;&lt;/a&gt;";
}


?&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
