Rob: you need to use a redirect script
Create a text file with your links in, one per line, with a code then a simple php script that reads the file based on a code.
Example text file (ie: afflinks.txt):
Example PHP (ie redirect.php):PHP Code:32red|http://resources.32red.com/redirect.aspx?pid=10377&bid=1546
888|http://www.888.com/?sr=390487&flag=000
code|link
code|link
etc
Then on your site link using "/redirect.php?site=32red" where 32red is the code of the casino that corresponds to the first part of each line in your aff file.PHP Code:$lines = file($_SERVER['DOCUMENT_ROOT'].'/afflinks.txt');
foreach ($lines as $line) {
$parts = explode("|",$line);
if ($parts[0] == $_GET['site']) {
$loc = $parts[1];
}
}
if ($loc) {
header("Location: ".$loc);
}
From now on, you'll only ever have to update aff links once in your text file and the whole site will pick it up.





LinkBack URL
About LinkBacks




Reply With Quote



