On Wed, 25 Oct 2006 13:53:47 +0200, Dotan Cohen wrote:

> On 25/10/06, Ivo F.A.C. Fokkema <[EMAIL PROTECTED]> 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.

Ah, in that case using $HTTP_ACCEPT_LANGUAGE relies on the
register_globals setting, which is a security risk (and turned off by
default). Please read up on this, so you know what you're up against...
See: http://www.php.net/register_globals

Ivo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to