Re: register_globals setting

From: Date: Thu, 04 Jan 2001 04:41:07 +0000
Subject: Re: register_globals setting
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32606@lists.php.net to get a copy of this message
From here : PHP Manual : Configuration ----------------------------------------------- http://www.php.net/manual/configuration.php <snip> register_globals boolean Tells whether or not to register the EGPCS (Environment, GET, POST, Cookie, Server) variables as global variables. You may want to turn this off if you don't want to clutter your scripts' global scope with user data. This makes the most sense when coupled with track_vars - in which case you can access all of the EGPCS variables through the $HTTP_ENV_VARS, $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, and $HTTP_SERVER_VARS arrays in the global scope. </snip> <snip> track_vars boolean If enabled, then Environment, GET, POST, Cookie, and Server variables can be found in the global associative arrays $HTTP_ENV_VARS, $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, and $HTTP_SERVER_VARS. Note that as of PHP 4.0.3, track_vars is always turned on. </snip> Regards, Philip On Wed, 3 Jan 2001, Todd Cary wrote: > I now have "register_globals = Off ", but I need to get all values from > the global arrays. How does one decide whether to have this setting On > or Off? > > Todd > > > -- > Todd Cary > Ariste Software > todd@aristesoftware.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#32606) next »