Well these are the periods, so I have (hopefully) edited your script correctly:
<?php
$time = time();
if ($time >= strtotime('Monday 7am') && $time <= strtotime('Monday 8am'))
{
echo 'it is now Monday between 7am-8am';
}
if ($time >= strtotime('Monday 7pm') && $time <= strtotime('Monday 8pm'))
{
echo 'it is now Monday between 7pm-8pm';
}
if ($time >= strtotime('Wednesday 7am') && $time <= strtotime('Wednesday 8am'))
{
echo 'it is now Wednesday between 7am-8am';
}
if ($time >= strtotime('Wednesday 7pm') && $time <= strtotime('Wednesday 8pm'))
{
echo 'it is now Wednesday between 7pm-8pm';
}
if ($time >= strtotime('Friday 6am') && $time <= strtotime('Friday 8am'))
{
echo 'it is now Friday between 6am-8am';
}
if ($time >= strtotime('Friday 6pm') && $time <= strtotime('Friday 8pm'))
{
echo 'it is now Friday between 6pm-8pm';
}
if ($time >= strtotime('Saturday 6am') && $time <= strtotime('Saturday 8am'))
{
echo 'it is now Saturday between 6am-8am';
}
if ($time >= strtotime('Saturday 6pm') && $time <= strtotime('Saturday 8pm'))
{
echo 'it is now Saturday between 6pm-8pm';
}
?>
So far so good, but I also want a certain message to display on all other times, how do I incorprate that into the script?