is this possible? script to show index1.php (as an example for 3 hours) then have index2.php show for the rest of the day?
yes you can!! <?php $url = "index1.php"; $time = date("H"); // get hour in 24 hr format if ( $time >= 10 && $time <= 13){ // from 10 am to 1 pm $url = "index2.php"; } header('Location: '.$url); ?> Code (markup): make this your index.php Cheers
Cool idea, I take it this uses server's time? (still new to PHP really) I might use something like this lol but because my stuff is hosted in the US I'd need to have it add some hours to correct the time to GMT0
yeah, add more conditions and set different pages for different times. you can redirect for every hour or minute of the day if you wanted too..