hola muchas gracias por su aporte me funciono perfecto lo hice asi
Código PHP:
$fecha2=date('Y-m-d H:i:s');
$actual2=$fecha2;
$fechacierre=date('Y-m-d 21:00:00');
$fechainicio=date('Y-m-d 07:00:00');
if ($actual2 >$fechainicio && $actual2 < $fechacierre ){
echo '<meta http-equiv="refresh" content="2">';
}