Forum Moderators: coopster

Message Too Old, No Replies

Detect IE language by PHP

         

alexandrahan

1:08 pm on Jun 13, 2003 (gmt 0)

10+ Year Member



Hello!

I am thinking of using PHP script to detect user`s IE language and show him different page. Say, if the user use EN IE, I will show him a enindex.htm, and deindex for DE IE user, can anyone help me?

Timotheos

4:02 pm on Jun 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If it's set then its in the predefined server variables.
$_SERVER['HTTP_ACCEPT_LANGUAGE'].

takagi

4:55 am on Jun 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Please do remember that the IE language is not always the language the visitor wants to use. If an American tourist in Germany goes to a cybercafe with the German version of IE on the PCs, he still might want to read the English section of your site. So a default language depending on the IE language is OK, but please give the visitor the option to overrule it.