Re: [PHP] _SERVER[HTTP_ACCEPT_LANGUAGE] en-us

2006-10-18 Thread Ivo F.A.C. Fokkema
On Tue, 17 Oct 2006 08:18:47 +0100, Stut wrote: John Taylor-Johnston wrote: This is what http_accept_language gives me depending on which browser. Depending on the visitor in my region, it will either be French or English. _SERVER[HTTP_ACCEPT_LANGUAGE] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3

[PHP] _SERVER[HTTP_ACCEPT_LANGUAGE] en-us

2006-10-17 Thread John Taylor-Johnston
This is what http_accept_language gives me depending on which browser. Depending on the visitor in my region, it will either be French or English. _SERVER[HTTP_ACCEPT_LANGUAGE] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3 _SERVER[HTTP_ACCEPT_LANGUAGE] fr-ca,en-us;q=0.5 Is this a reasonable approach?

Re: [PHP] _SERVER[HTTP_ACCEPT_LANGUAGE] en-us

2006-10-17 Thread Stut
John Taylor-Johnston wrote: This is what http_accept_language gives me depending on which browser. Depending on the visitor in my region, it will either be French or English. _SERVER[HTTP_ACCEPT_LANGUAGE] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3 _SERVER[HTTP_ACCEPT_LANGUAGE] fr-ca,en-us;q=0.5

Re: [PHP] _SERVER[HTTP_ACCEPT_LANGUAGE] en-us

2006-10-17 Thread Richard Lynch
On Tue, October 17, 2006 1:13 am, John Taylor-Johnston wrote: This is what http_accept_language gives me depending on which browser. Depending on the visitor in my region, it will either be French or English. _SERVER[HTTP_ACCEPT_LANGUAGE] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3

Re: [PHP] _SERVER[HTTP_ACCEPT_LANGUAGE] en-us

2006-10-17 Thread John Taylor-Johnston
Stut, Richard, Thanks for the feedback! Quebec has a language law, so I'm obligated to serve French first. I can wiggle around that if the preferred language is other. John Is this a reasonable approach? if(stristr($_SERVER[HTTP_HOST],fr)) { include(french.htm);}else{ include(english.htm);}