Date: 10/31/00
- Next message: schirrmann <email protected>: "Re: [phplib] accessing HTTP_ENV_VARS in setup.inc"
- Previous message: netbsd alpha: "Re: [phplib] Template vs FastTemplate"
- Next in thread: schirrmann <email protected>: "Re: [phplib] accessing HTTP_ENV_VARS in setup.inc"
- Reply: schirrmann <email protected>: "Re: [phplib] accessing HTTP_ENV_VARS in setup.inc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi everyone,
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");
which looks good to me. However if I print $strGlobalLanguage to the
screen it contains nothing. If I print
$HTTP_ENV_VARS["HTTP_ACCEPT_LANGUAGE"] to the screen it works.
It looks like the that setup.inc can't access
$HTTP_ENV_VARS["HTTP_ACCEPT_LANGUAGE"].
Any ideas what I am missing here?
Cheers,
Andreas
-- Andreas Otto OgilvyInteractive | Floor 2, Canberra House 315 - 317 Regent Street | London W1B 2HS Reception +44 207 299 3434 | Fax +44 207 631 5050 http://www.ogilvy.com--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: schirrmann <email protected>: "Re: [phplib] accessing HTTP_ENV_VARS in setup.inc"
- Previous message: netbsd alpha: "Re: [phplib] Template vs FastTemplate"
- Next in thread: schirrmann <email protected>: "Re: [phplib] accessing HTTP_ENV_VARS in setup.inc"
- Reply: schirrmann <email protected>: "Re: [phplib] accessing HTTP_ENV_VARS in setup.inc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

