assigning pages according to time

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
deltatango5
Forum Newbie
Posts: 14
Joined: Mon Jan 22, 2007 1:07 pm
Contact:

assigning pages according to time

Post 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!
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: assigning pages according to time

Post by John Cartwright »

Code: Select all

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