$basla = mktime(18,0,0,12,17,2007);
$bit = mktime(10,0,0,12,18,2007);

if((time() > $basla) && (time() < $bit)) {
header("Location: a.php");
exit();
} else {
header("Location: b.php");
exit();
}