GEO-IP with PHP Hi
I need a little help.
I'm using http://api.hostip.info/country.php
to fetch the locale of the visitor.
I'd like to fetch this through my PHP script, with something like this: $locale = @file("http://api.hostip.info/country.php");
But, then this web service doesn't fetch my visitors location, but my web server location.
I need tihs to programatically set the default language for my multilanguage website.
Does anybody have any idea how to "fix" this ?
Thank you
__________________ Martic.net - Talking in binary since 1980. TXTberry.com - Text-based services for blackberry and other mobile devices (whois, etc.). |