View Single Post
Old 08-06-2008, 03:59 PM  
fuzzylogic
Confirmed User
 
fuzzylogic's Avatar
 
Join Date: Jun 2004
Location: buffalo, las vegas. icq: 285808879
Posts: 4,796
Quote:
Originally Posted by directfiesta View Post
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?
fuzzylogic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote