Thanks for the link. I checked this out, but don't understand how this is actually going to give me credit for the sale.
CJ uses an affiliate link like such.
Code:
DO NOT CLICK, THIS IS FOR DEMONSTRATION ONLY
http://www.dpbolvw.net/click-3589809-10408495
How does this script actually redirect it to a link such as that?
PHP Code:
<?php $destname = strtolower($_GET["name"]);
$Dests = array( "crams"=>"http://www.cram-system.com", "amazon"=>"http://www.amazon.co.uk", "ebay"=>"http://www.ebay.co.uk", "clickbank"=>"http://57erd.reseller.hop.clickbank.net", "auctads"=>"http://www.auctionads.com/", "cj"=>"http://www.cj.com/", "yahoo"=>"http://www.yahoo.com/", "goog"=>"http://www.google.com/", "msn"=>"http://www.msn.com/" );
// Code can be inserted in here to log the clickthrough into a database ;
header("HTTP/1.1 301 Moved Permanently"); // comment out the line above to send the default 302 redirect; header("Location: " . $Dests[$destname]); exit();
?>
I see that this is using a get method. Wouldnt this actually redirect it to http://www.cj.com/? I'm guessing this means that I would have to change that link to my actual affiliate link for a particular product, but then it is just going to be pretty much static and I would be better off just using static html to put in every affiliate link. - although this would get pretty hard if I had something like 5000 products.
__________________
Please login or register to view this content. Registration is FREE
Coding is just like a woman. If you don't do something exactly right, it complains.
Last edited by WebTraffic; 12-09-2009 at 12:04 PM..
|