Hi, I am creating a bilingual website (Dutch and English) and I wonder how
I would best detect the human language of a visitor. I am attempting
several things, but I am sure there must be a generally accepted
alternative. Can anyone point me to more info?
I am tinkering around with HTTP_REFERER and HTTP_USER_AGENT and a bit in
JavaScript which only works with Netscape browsers. But detection usually
fails. I was wondering, my server provides a REMOTE_ADDR value, but not a
REMOTE_HOST. From the last I could look voor a ".nl" extention. Is there a
way to (inline) translate a IP address to something readable? It's a remote
server on which I can't control the settings.
Why is this so difficult? It should be a basic feature of any
international software... or am I missing something?
Thanks, Marco
--
Marco Bleeker, Amsterdam, NL.
Please do not distribute my email address to a third party
Refer to www.ecocam.com for an email form (and more)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Re: [PHP] human language detection Marco Bleeker
- Re: [PHP] human language detection Jason Wong
- [PHP] human language detection Marco Bleeker