Page 1 of 1

Tongue sensitive web content

Posted: Wed Nov 02, 2005 10:00 am
by simonsavo
Dear all,

i'm tring to develop my website with some PHP features.

I'd like to know if php codes can check visitors' computer tongue and load web content based on this information.
I mean english website if user computer language is english and so on...

Thanks in advance
Simone

Posted: Wed Nov 02, 2005 10:18 am
by s.dot
my guess is you'd have to check the remote ip address, and base the language on the country the visitor is coming from...

but there's probably a better way

Posted: Wed Nov 02, 2005 10:29 am
by ambivalent
Might be able to do something with $_SERVER['HTTP_ACCEPT_LANGUAGE']

Posted: Wed Nov 02, 2005 11:08 am
by feyd
you can also fall back to look at the user agent string as it often contains the browser's installed language.. however you should also have a default in case none of the information is available..