Page 1 of 1

assigning pages according to time

Posted: Tue Apr 01, 2008 12:09 pm
by deltatango5
I'm not well versed in PHP, but wanted to see if somebody could offer their time to provide code as to when a person lands on a page, in the first 30 secs of a given minute it shows the "assigned" page version A ... and if they land in the latter 30 seconds of a given minute that they land on version B page ...

Can anyone help out? Thanks in advance for you assistance!

Re: assigning pages according to time

Posted: Tue Apr 01, 2008 2:41 pm
by John Cartwright

Code: Select all

if (date('s') <= 30) {
   echo 'page1';
} else {
   echo 'page2';
}
Simple 8)