View Single Post
Old 04-21-2008, 07:17 PM  
rogerrabbit00
Confirmed User
 
Industry Role:
Join Date: Aug 2006
Location: Costa Rica
Posts: 315
Here is a simple script to test any sponsors against each other. Just add your traffic links and name the file index.php If you want to test more than 2 urls at once let me know and I will send you a new script.

<html>
<?

$url_a = 'http://www.aol.com';
$url_b = 'http://www.gfy.com';
$goto = '';

$shm_key = ftok(__FILE__, 't');
$shm_id = shmop_open($shm_key, "c", 0644, 100);

$data = shmop_read($shm_id, 0, 1);

if (($data!='1') && ($data!='2'))
{
$shm_bytes_written = shmop_write($shm_id, '1', 0);
$data = 1;
}

if ($data=='1')
{
$goto = $url_a;
$bw = shmop_write($shm_id, '2', 0);
}
if ($data=='2')
{
$goto = $url_b;
$bw = shmop_write($shm_id, '1', 0);
}

shmop_close($shm_id);
//echo 'Redirecting to: '.$goto.'!';
header('Location: '.$goto);
die();


?>
</html>
__________________
Dating Email Traffic for Sale. www.SplitTraffic.com

Skype: Rogerwilson00
rogerrabbit00 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote