I found this affilate link masking script and it works:
Code:
<?php
$v = $_GET['v'];
// In case someone calls naked php file
if ($v == '') {$link = 'http://example.com/';}
// Add as many as links in below format. Each in a new line.
if ($v == 'product1') {$link = 'http://example1.com/';}
if ($v == 'product2') {$link = 'http://example2.com/';}
if ($v == 'product3') {$link = 'http://example3.com/';}
// Don't change anything below this line.
header("Location: $link") ;
exit();
?>
But i see in the server error log that it gives folling error everytime the link is clicked: Undefined variable: link in /home/../public_html/..com/go.php on line 13.
Can someone tell me why it makes this error? Because the script works
regards
Bookmarks