PHP rotator not passing subids

Groomez

New member
Mar 23, 2008
441
9
0
South Carolina
I need a coder to look over this. I'm trying out this php rotator and attempting to pass my sub ids through to the network but I'm not seeing them in my reports.. I've tried this with a few networks and I'm not seeing anything.. Fyi, I am making sure to view "all traffic" and not just "qualified traffic"

this is the code:
Code:
<?php

$sid = $_GET["sub"];
$domains = array(
'afflink.com/index.whateverblahblah&sid=',
'afflink.com/index.whateverblahblah&sid=',
'afflink.com/index.whateverblahblah&sid=',
);

header("Location: ".$domains[rand(0,2)].$sid);

?>
^courtesy of Adtrepreneur

the syntax I'm using is mydomain.com/index.php?sub=test

the subid of 'test' isn't passing.. I'm seeing clicks show up but blank subid's
 


Use this:

Code:
<?php
$k = $_GET['sub'];

  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  
  srand ((double) microtime() * 1000000);
  $random_number = rand(0,count($aff)-1);

  $lol = ($aff[$random_number]);
  $lal = $lol.$k;

header("Location: $lal");

?>

Just add or remove these lines as you see fit, no need to modify anything else:

Code:
$aff[] =  'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
 
Use this:

Code:
<?php
$k = $_GET['sub'];

  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  $aff[] = 'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';
  
  srand ((double) microtime() * 1000000);
  $random_number = rand(0,count($aff)-1);

  $lol = ($aff[$random_number]);
  $lal = $lol.$k;

header("Location: $lal");

?>

Just add or remove these lines as you see fit, no need to modify anything else:

Code:
$aff[] =  'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';

Correct me if I'm wrong, but isn't the rotator code you listed for only when you're rotating simple lp's.? What if you're rotating your advanced (multiple offer) lp's in p202? Shouldn't it look more like this.... 'xxx.com?t202id=6133&t202kw=' and not.... 'xxx.com/tracking202'.
 
Correct me if I'm wrong, but isn't the rotator code you listed for only when you're rotating simple lp's.? What if you're rotating your advanced (multiple offer) lp's in p202? Shouldn't it look more like this.... 'xxx.com?t202id=6133&t202kw=' and not.... 'xxx.com/tracking202'.

Dude, this is irrelevant.

These are just URL's you can put in, I just used direct linking for p202 as an example. You can put makemoniesonline URL's in every link if you want to, all the script does is redirect you to a random URL.
 
Use this:

Code:
<?php
...
  srand ((double) microtime() * 1000000);
  $random_number = rand(0,count($aff)-1);

  $lol = ($aff[$random_number]);
  $lal = $lol.$k;

header("Location: $lal");

?>

Just add or remove these lines as you see fit, no need to modify anything else:

Code:
$aff[] =  'http://xxx.com/tracking202/redirect/dl.php?t202id=6133&t202kw=';



Instead of the whole random bit:

Code:
...
  $lal = $aff[array_rand($aff)].$k;

header("Location: $lal");
...