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! Quote 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? Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.