Quote:
Originally Posted by directfiesta
you need to create a link.php file ( or name it whatever you want ) and upload on your site:
PHP Code:
<?PHP
if ($o == "l1") {$link = "http://www.lunarpages.com/id/my_id";} // Default link
if ($o == "l2") {$link = "http://www.yahoo.com";}
if ($o == "l3") {$link = "http://forums.digitalpoint.com";}
if ($o == "l4") {$link = "http://blog.findinforums.com";}
header("Location: $link"); // Jump to the hiddden affiliate URL above
exit();
?>
then you put your link in your page(s) like:
http://www.mydomain.com/links.php?o=l1 ( goes to lunarpages )
http://www.mydomain.com/links.php?o=l2 ( goes to yahoo )
etc ....
easy, no db ....
|
thanks for the code, but it doesnt seem to work for me. all i get is a white page after clicking a link using your code example unaltered.
any other suggestions for cloaking affiliate links?