Amrak Posted May 22, 2007 Share Posted May 22, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/52418-affiliate-link-redirect-question/ Share on other sites More sharing options...
GOLDfish_74 Posted May 22, 2007 Share Posted May 22, 2007 Wouldn't you have to switch back to HTML before you put the img tag in: ? <? BLAH in PHP ?> <img src="blah...> <? MORE PHP ?> Quote Link to comment https://forums.phpfreaks.com/topic/52418-affiliate-link-redirect-question/#findComment-258676 Share on other sites More sharing options...
Amrak Posted May 22, 2007 Author Share Posted May 22, 2007 I have no clue - but I'll try that--thanks! Quote Link to comment https://forums.phpfreaks.com/topic/52418-affiliate-link-redirect-question/#findComment-258722 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.