|
|
|
|
|
|
![]() |
#1 |
Heh Heh Heh! Lisa! Vampires are make believe, just like elves and gremlins and eskimos!
Join Date: Dec 2004
Posts: 79
|
50/50 php traffic filter
Hi
I'm looking for script which will send first clickt to address1 second click to address2 third click to address 1 etc... I have something like this PHP Code:
Can you help ? |
![]() |
![]() |
![]() |
#2 |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
You could store a 0 or 1 value in a database, and have the value change every time the code executes... but that seems like a lot of resources to use up just to be in control over something like that.
Over a wide sample, random values should equal 50/50 odds. ![]() Why do you need 50/50, exactly? Also, I'd rather have the code cycle through an array of header values, this way you can easily add more headers later. ![]()
__________________
~Warm and Fuzzy. ![]() |
![]() |
![]() |
![]() |
#3 |
Heh Heh Heh! Lisa! Vampires are make believe, just like elves and gremlins and eskimos!
Join Date: Dec 2004
Posts: 79
|
I need a filter which will send a user who clicks in link first time to LINK1 next user will send to LINK2 next user will send to LINK1 next to LINK2 ...
|
![]() |
![]() |
![]() |
#4 |
You can now put whatever you want in this space :)
|
For this u need to record the last selection...
and then check this last selection before choosing where to send the user...
__________________
![]() |
![]() |
![]() |
![]() |
#5 |
Well you know boys, a nuclear reactor is a lot like women. You just have to read the manual and press the right button
|
You have to remember somehow the last selection. You could do it using a database table or textfile. I don't see other means to do it.
__________________
My Asian Kitty - My Free Sites |
![]() |
![]() |
![]() |
#6 |
Internet! Is that thing still around?
Join Date: Oct 2006
Location: unscrypted.com
Posts: 2
|
Hey, do you want this script to operate on a per visitor basis?
Example, it rotates 50/50 between the two URLs on each individuals click(s). OR on a global level where each click made by ALL visitors is stored and recorded by the system and the 50/50 chance is based on all clicks being made throughout the system.. Thanks, Levi |
![]() |
![]() |
![]() |
|
|