Re: auto_globals_jit breaks $_SERVER var

From: Date: Tue, 15 Aug 2006 23:17:20 +0000
Subject: Re: auto_globals_jit breaks $_SERVER var
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-17595@lists.php.net to get a copy of this message
Hi, Try: <?php print_r($_SERVER); or <?php print_r($GLOBALS); Or <?php phpinfo(); I didn't think there was a way to 'turn off' the superglobals. regards, Peter --- "Artzi, Yoav (Yoav)" <artzi@avaya.com> wrote: > I have the following in my php.ini: > register_globals = Off > register_long_arrays = Off > register_argc_argv = Off > auto_globals_jit = On > > The following PHP code prints nothing: > <?php > $webroot = $_SERVER['DOCUMENT_ROOT']; > $server = $_SERVER["HOST"]; > $file = $_SERVER["SCRIPT_FILENAME"]; > $transport = $_SERVER["REQUEST_TRANSPORT"]; > $port = $_SERVER["SERVER_PORT"]; > print "$webroot"; > print "$server"; > print "$transport"; > ?> > > The rest of the php.ini is like php.ini-recommended that comes with the > source. Any idea what might be the problem? > > Thanks, > > Yoav. > ____________________________________________________ On Yahoo!7 360°: Your own space to share what you want with who you want! http://www.yahoo7.com.au/360

« previous php.install (#17595) next »