[phplib] accessing HTTP_ENV_VARS in setup.inc From: Andreas Otto (andreas <email protected>)
Date: 10/31/00

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>