Help! Question regarding using PHP to mask affiliate URL.

Discussion in 'Affiliate Programs' started by NewIQ, Oct 9, 2007.

  1. #1
    I created a thread recently about this same topic. A good DP user posted some PHP code that probably works, but I think I'm doing something wrong. Here's the instructions & code:

    So if I want to display "www.mydomain.com" in place of my affiliate URL "http://affiliate.mydomain.com", how would I change the above code?

    I assume, if I had only one affiliate link, it would look like this:

    Isn't that right? Then I'd save that code in a file called link.php and FTP it into HTTPDOCS. Is there anything else I need to do? Or are any of these steps wrong? I followed the steps I outlined above and its not working for me.

    Also, does Google frown upon this? Will they punish you for, like, cloaking or something?

    Any help with these questions would be appreciated, thanks!
     
    NewIQ, Oct 9, 2007 IP