Jump to content

Affiliate Link Redirect question


Amrak

Recommended Posts

I need help!

 

To cloak my affiliate links, I use a program that I input the affiliate link & generates code that I put in a PHP file that I link to & it redirects to the merchant's product page.  All I am trying to do is protect my link from thieves and make it look more "normal" for my vistors--not trying to cookie stuff or anything like that. 

 

My problem is that one of the new merchant programs I am promoting is through clixGalore, and their affiliate links are a bit different from what I am used to.  Instead of giving you an affiliate text link something like this:

 

http://www.netrition.com/cgi/goto.cgi?pid=xx-xxxx&aid=QQQQ

 

It gives me this:

 

<!-- Begin clixGalore Code-->

< img src="http:// www.is1.clixgalore.com/Impression.asp?BID=29711&AfID=QQQQ&AdID=xxxx" width="0" height="0" border="0">

< A href="http://www.clixGalore.com/PSale.aspx?BID=29711&AfID=QQQQAdID=XX-XXXX&AffDirectURL=http%3a%2f%2fwww.worldclassnutrition.com%2faplodan.html">

</A>

<!-- End clixGalore Code-->

 

According to clixGalore, the image part of the code is important because it calls an invisible file from their servers which it uses to record an impression.  It also says the BID (banner ID) is important, even though this link isn't for a banner--it's a text link.

 

My problem is, I don't know what to do with this--I can't put what they are giving me into my little program to generate the redirection code because all I can put in there is the affiliate link (http://www.netrition.com/cgi/goto.cgi?pid=xx-xxxx&aid=QQQQ) If I put all that other stuff in, it doesn't work.

 

I tried this:   

<?php

header ('Location: http://www.clixGalore.com/PSale.aspx?BID=29711&AfID=QQQQQ&AdID=xxxxx&AffDirectURL=http%3a%2f%2fwww.worldclassnutrition.com%2faplodan.html');< img src="http://www.is1.clixgalore.com/Impression.asp?BID=29711&AfID=QQQQQ&AdID=xxxxx" width="0" height="0" border="0">

?>

 

but it gives me the following error: Parse error: syntax error, unexpected '<'

 

Can someone please explain to me what I should do?  How can I take clixGalore's link info and manipulate that on my own in a PHP file?

 

Thank you!

Karma

Link to comment
https://forums.phpfreaks.com/topic/52418-affiliate-link-redirect-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.