Net_GeoIP PHP script not sending prosper202 link
However i've included my prosper202 tracking links which contain my affiliate links in a NET_GeoIP PHP script, however the clicks aren't showing on my CPA networks end.
I've tried contacting them, but no response.
Here is the script.
<?php
// Next two lines are for Beyond Hosting
// Don't forget to change your-domain
require_once '/home/mydomain/php/Net/GeoIP.php';
$geoip = Net_GeoIP::getInstance('/home/mydomain/php/Net/GeoIP.dat');
try {
$country = $geoip->lookupCountryCode($_SERVER['REMOTE_ADDR']);
switch((string)$country) {
case 'AU':
$url = "http://myprosper202link.com/tracking202/redirect/dl.php?t202id=####&t202kw=AU";
break;
case 'CA':
$url = "http://myprosper202link.com/tracking202/redirect/dl.php?t202id=####&t202kw=CAN";
break;
case 'GB':
$url = "http://myprosper202link.com/tracking202/redirect/dl.php?t202id=####&t202kw=GB";
break;
case 'US':
$url = "http://myprosper202link.com/tracking202/redirect/dl.php?t202id=####&t202kw=USA";
break;
default:
$url = "http://myprosper202link.com/tracking202/redirect/dl.php?t202id=####&t202kw=intl";
}
header('Location: '.$url);
} catch (Exception $e) {
// Handle exception
}
?> Thanks
-
jaimegm -
Thanks - 1 reply
{{ DiscussionBoard.errors[8196308].message }}-
sean83 -
Thanks
{{ DiscussionBoard.errors[8196418].message }} -
-
-
jaimegm -
Thanks
{{ DiscussionBoard.errors[8197548].message }} -