Re: [phplib] accessing HTTP_ENV_VARS in setup.inc From: schirrmann <email protected>
Date: 10/31/00

Hi Andreas!

> in setup.inc I try to do the following:
> # define global variables
> global $strGlobalLanguage;
> # feed global variables
> $strGlobalLanguage = substr($HTTP_ENV_VARS["HTTP_ACCEPT_LANGUAGE"], 0, 2);
> # register the names
> $sess->register("strGlobalLanguage");

> It looks like the that setup.inc can't access
> $HTTP_ENV_VARS["HTTP_ACCEPT_LANGUAGE"].

Perhaps I'm wrong, but when accessing $HTTP_ENV_VARS from setup.inc,
shouldn't you also declare it as global? The documentation says,
setup.inc is working in the context of page_open(), not in global
context.

cya
 Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>