On 25/10/06, Ivo F.A.C. Fokkema <I.F.A.C.Fokkema@xxxxxxx> wrote:
Because that wouldn't work :) This variable may contain stuff like "nl,en-us;q=0.7,en;q=0.3". You'll need to do something with this variable first to use array_key_exists (or as you do, isset). That said, I agree that strstr() might not be the best solution. An other note, Dotan: shouldn't $_HTTP_ACCEPT_LANGUAGE actually be $_SERVER['HTTP_ACCEPT_LANGUAGE']?
I am using $HTTP_ACCEPT_LANGUAGE. I copied-pested $_HTTP_ACCEPT_LANGUAGE from the first version of the code, which of course didn't work :) $_SERVER['HTTP_ACCEPT_LANGUAGE'] works too. Dotan Cohen http://what-is-what.com/what_is/spam.html http://song-lirics.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php