Hi people this is my first post and im quite new to PHP, what i am trying to do is create a coundown function for 7 days including minutes and seconds in a page then when it reaches 0 i want it to reset its self again but stop users viewing that page but redirect them , would this be possible. Many Thanks Chris
Something like this should work. $starttime = strtotime('October 29, 2010'); $currenttime = time(); $week = 60*60*24*7; // one week in seconds if (($currenttime-$starttime)<$week) { // show your page ... } else { header('Location: /otherpage.php'); } PHP:
Wow Mike, that looks very impressive will have to look at trying it later today, thankyou for the quick response, may i ask you where you learnt php. Regards Chris