physaux Posted October 11, 2009 Share Posted October 11, 2009 Hey guys anyone know how to do that? Probably using their IP, or browser information? I want to be able to offer my webpage in many languages. Thanks! Link to comment https://forums.phpfreaks.com/topic/177279-getting-users-probable-language-with-php/ Share on other sites More sharing options...
mikesta707 Posted October 11, 2009 Share Posted October 11, 2009 IP addresses by themselves can not give you a location of someone. IP addresses can often lie also (depending on the ISP) for example, a lot of AOL users can appear to be living in virginia (US aol users that is) when they in fact may live in california, or Florida. Not to mention that, since IP addresses aren't region specific (they are not like telephone numbers, which give you an area code) you would need some sort of 3rd party information. why not just provide a link to the website in different languages at the home page? Link to comment https://forums.phpfreaks.com/topic/177279-getting-users-probable-language-with-php/#findComment-934710 Share on other sites More sharing options...
physaux Posted October 11, 2009 Author Share Posted October 11, 2009 I read something about HTTP Accept-Language headers, and GeoIP.. Any ideas how to use these? -mikesta, i would just want my page to pop up in the language that this method would tell me. Even if it had a 70% success rate, i would use it, and offer the ability to change the language. Link to comment https://forums.phpfreaks.com/topic/177279-getting-users-probable-language-with-php/#findComment-934711 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.