...

View Full Version : timed redirect



game27net
04-13-2012, 10:37 AM
I need a redirect that happens between the time of 2a to 6am in php
can anyone help?

sir pannels
04-13-2012, 03:35 PM
Howdy,

Probably better ways to do it but I'm short on time...

<?php
$time = date("G");
if($time>1 && $time<7)
{
header('Location: http://www.freelancepow.com/');
}
?>

Enjoy



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum