View Single Post
Old 06-15-2020, 02:22 AM  
xxx6live
Confirmed User
 
xxx6live's Avatar
 
Industry Role:
Join Date: Dec 2012
Location: Scandinavia
Posts: 279
Just generate a random number from 1 to 3, then redirect to one of 3 sponsors depending on the number. Can be done in a few lines of PHP like below (or JavaScript). With enough traffic each should have about the same traffic in the end.

Quote:
$rnd = mt_rand(1,3);
switch ($rnd) {
case 1:
header("Location: https://sponsor1", true, 302);
break;
case 2:
header("Location: https://sponsor2", true, 302);
break;
case 3:
header("Location: https://sponsor3", true, 302);
break;
}
xxx6live is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote