Re: Re: [PHP] 4.10 New Vars Question

2001-12-25 Thread David

 hmm, now that i\'m trying to program with register_globals=off, what is the new 
$HTTP_SESSION_VARS?

maybe there should be a page in the online manual describing these new variables for 
easy reference after all, i can\'t find reference to them other than those on the 
changelog too.

thanks
David

Two items in the new 4.10 change-log caught my attention: 

* Introduced a new $_REQUEST array, which includes any GET, POST or 
COOKIE variables. Like the other new variables, this variable is also 
available regardless of the context. (Andi  Zeev) 
* Introduced $_GET, $_POST, $_COOKIE, $_SERVER and $_ENV variables, which 
deprecate the old $HTTP_*_VARS arrays. In addition to be much shorter to type - 
these variables are also available regardless of the scope, and there\'s no need to 
import them using the \'global\' statement. (Andi  Zeev) 

However, I can\'t seem to find any documentation regarding these variables on the 
php.net site. Any pointers? Am I missing something obvious? Thanks! 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: Re: [PHP] 4.10 New Vars Question

2001-12-25 Thread Philip Olson

 hmm, now that i\'m trying to program with register_globals=off, what
 is the new $HTTP_SESSION_VARS?

$HTTP_SESSION_VARS works, as will $_SESSION (after 4.1.0).  These
special PHP variables are described in the manual:

  http://www.php.net/manual/en/language.variables.predefined.php

Some words specific to $_SESSION are available within here:

  http://www.php.net/release_4_1_0.php

An excerpt:


Another neat trick is that creating new entries in the $_SESSION array
will automatically register them as session variables, as if you called
session_register(). This trick is limited to the session module only - for
example, setting new entries in $_ENV will *not* perform an implicit
putenv().

 
 maybe there should be a page in the online manual describing these new 
 variables for easy reference after all, i can\'t find reference to
 them other than those on the changelog too.

The new vars will be listed and described in the manual eventually (fairly
soon).  For now, read the above release notes.


Regards,
Philip Olson


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: Re: Re: [PHP] 4.10 New Vars Question

2001-12-25 Thread David

 ok, thanks Phillips!

The new vars will be listed and described in the manual eventually (fairly soon). 
For now, read the above release notes. 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]