I'm the web master for a local radio station, but am not a php pro in any context of the word. I was able to fumble my way through php in order to set up an hourly image rotator for the top of the site.
(It displays which announcer is on the air).
I'm wanting to do the same for our contests, but they fall at various times (7:50am, 12:20pm, etc).
One segment of the rotator script appears like this:
<?php
// Get the day of week (Sun=0, Mon=1 ... Sat=6)
$day=date("w");
// If it's Mon-Fri, check the time
if($day ==0){
// Get the Hour (24 hr)
$hour=date("G");
// between times?
if($hour >= 0 && $hour < 13){
// Display your image here
echo "<img src='http://www.station.com/timer/images/rotator_img.png' alt='' /><br />";
}
}
It works fine for hours, but I cannot for the life of me figure out how to convert it for use with Minutes (I want to display "Next Contest Coming Up" and "TUNE IN NOW to play" images).
Thanks in advance for whomever can point me in the right direction.