Home › Forums › JavaScript › Multiple URL Redirect Time based › Reply To: Multiple URL Redirect Time based
June 9, 2015 at 11:17 pm
#203511
consultnew
Participant
<?php
$hour = (int)date(“G”);
$hour = (int)date(“G”);
if ($hour >= 6 && $hour <= 14)
{
?>
<script type=”text/javascript”>
{
window.location.href = “normal.php”;
};
</script>
<?php
}
else if ($hour >= 14 && $hour <= 22)
{
?>
<script type=”text/javascript”>
{
window.location.href = “vodafone.php”;
};
</script>
<?php
}
?>