smaxdot
05-28-2008, 11:53 PM
Hey folks,
Hoping someone can lend me a hand here...Basically I'm trying to cloak my affiliate link via a PHP jump script. I've normally cloaked via .htaccess in the past, but this time I want to pull out the keyword value from my destination URL and put that into my affiliate link (so it gets passed to me in my sales reports from the affiliate network).
Therefore the actual aff link on my landing page is this:
http://aff-link-from.network.com?TID=<?php echo $_GET['keyword'] ;?>
Now in order to cloak the link above, I'm assuming I need to use some sort of jump script... Can someone help me out and advise of what my link should look like on the LP as well as the contents of the script itself? I've read some of Artarmon's infamous posts on this but I'm getting a bit lost...all I want to do in this script is redirect to the actual aff link...I won't have a need to have a lot of diff aff links in there, etc.
Here are my guesses as to what the link on my LP should look like as well as the contents of the jump script....any and all guidance is very much appreciated!
Link on the LP: <a href="jump.php?id=1&keyword=<?php echo $keyword ?>
Contents of jump:
<?php
$path = array(
'1' => 'http://RAW_AFF_LINK_HERE',
);
$id = htmlspecialchars($_GET['id']);
$keyword = htmlspecialchars($_GET['keyword']);
header('Location:'.$path[$_GET['id']].'?tid='.$key.'-'.$keyword);
?>
The above is sort of adapted from Artarmon's code but, in case you haven't guessed it by now, I'm a bit clueless with this PHP stuff!
Thanks,
- Dave
Hoping someone can lend me a hand here...Basically I'm trying to cloak my affiliate link via a PHP jump script. I've normally cloaked via .htaccess in the past, but this time I want to pull out the keyword value from my destination URL and put that into my affiliate link (so it gets passed to me in my sales reports from the affiliate network).
Therefore the actual aff link on my landing page is this:
http://aff-link-from.network.com?TID=<?php echo $_GET['keyword'] ;?>
Now in order to cloak the link above, I'm assuming I need to use some sort of jump script... Can someone help me out and advise of what my link should look like on the LP as well as the contents of the script itself? I've read some of Artarmon's infamous posts on this but I'm getting a bit lost...all I want to do in this script is redirect to the actual aff link...I won't have a need to have a lot of diff aff links in there, etc.
Here are my guesses as to what the link on my LP should look like as well as the contents of the jump script....any and all guidance is very much appreciated!
Link on the LP: <a href="jump.php?id=1&keyword=<?php echo $keyword ?>
Contents of jump:
<?php
$path = array(
'1' => 'http://RAW_AFF_LINK_HERE',
);
$id = htmlspecialchars($_GET['id']);
$keyword = htmlspecialchars($_GET['keyword']);
header('Location:'.$path[$_GET['id']].'?tid='.$key.'-'.$keyword);
?>
The above is sort of adapted from Artarmon's code but, in case you haven't guessed it by now, I'm a bit clueless with this PHP stuff!
Thanks,
- Dave