Debt Consolidation - vBulletin - ID card - Discuss TV Forums - Web Hosting

PDA

View Full Version : I need to detect the Country and Language according to the OS settings


Dellius
Oct 13th 2007, 11:56 am
Hey mates ;-)

I need to detect my users' language, timezone and country according to the locale settings they used in the Windows Control Panel.

I need it so I could server my users specific content according to this information.

I would appreciate if give me some tips.

Maloid
Oct 13th 2007, 6:42 pm
You can use $_SERVER["HTTP_ACCEPT_LANGUAGE"] to get the language where the first one should be the OS language I guess.

For the country and timezone, you probably need to use GeoIP to get that information because that information isn't sent to the server

azizny
Oct 13th 2007, 7:27 pm
This might help a little:

http://www.free-php-scripts.net/P/Geo_IP

Peace,