Hi,
I'm trying to form a simple geo-targeting call, using hxxp://w_w_w.hostip.info/use.html, in which I insert my site visitor's country into a URL, and act accordingly.
Basically, if you click on hxxp://api.hostip.info/country.php it returns your 2-letter country code, so I would like to do something like:
Code:
$country=include(hxxp://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
PS - sorry about the hxxp instead of http
I'm not allowed to insert URLs here, but since I just want an aswer, with no spamming intended, I replaced http with hxxp and www with w_w_w