Thread: GEO-IP with PHP
View Single Post
Old 07-30-2007, 06:55 AM   #1 (permalink)
darmar
Platinum Lifetime Member
 
darmar's Avatar
 
Name: Darko Martic
Last Online: 09-29-2008 04:57 AM
iTrader: (1)
Join Date: Dec 2006
Posts: 90
DNF$: 100
Location: Zagreb, Croatia
Country:


Question 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.).
darmar is offline   Reply With Quote
Sponsored Links