Hi,
I’m trying to form a simple geo-targeting call, using Using the Database - IP Address Lookup - Community Geotarget IP Addresses Project , in which I insert my site visitor’s country into a URL, and act accordingly.
Basically, if you click on http://api.hostip.info/country.php it returns your 2-letter country code, so I would like to do something like:
$country=include(http://api.hostip.info/country.php);
But of course, this syntax actually returns $country = 1 (success) or 0 (failure).
How do I get it to return $country = US (or UK, or SE etc.)?
Thanks!
Andy