Redirecting URL's using PHP
Posted: Fri May 16, 2008 7:59 am
Hello all,
I need some help whit this subject:
I need to redrect URLs as the server time, I was trying some thing like this:
<?php
$hour = (int)date("H");
if ($hour >= 9 && $hour < 10) {
echo "<meta http-equiv="Refresh" content="5; url=http://www.google.com">";
} elseif ($hour >= 10 && $hour < 12){
echo "<meta http-equiv="Refresh" content="5; url=http://www.google.com">";
} elseif ($hour >= 12 && $hour < 13){
echo "<meta http-equiv="Refresh" content="5; url=http://www.google.com">";
(the code continues until 24h)
But is not working... could some one help me ??
I need some help whit this subject:
I need to redrect URLs as the server time, I was trying some thing like this:
<?php
$hour = (int)date("H");
if ($hour >= 9 && $hour < 10) {
echo "<meta http-equiv="Refresh" content="5; url=http://www.google.com">";
} elseif ($hour >= 10 && $hour < 12){
echo "<meta http-equiv="Refresh" content="5; url=http://www.google.com">";
} elseif ($hour >= 12 && $hour < 13){
echo "<meta http-equiv="Refresh" content="5; url=http://www.google.com">";
(the code continues until 24h)
But is not working... could some one help me ??