p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: FW: [pro_php] while on the subject...


Message #1 by "Nikolai Devereaux" <yomama@u...> on Wed, 13 Feb 2002 10:47:31 -0800

Okay, somebody shoot me.



I did it again.



nik



-----Original Message-----

From: Nikolai Devereaux [mailto:nikolai@u...]

Sent: Wednesday, February 13, 2002 10:39 AM

To: professional php

Subject: [pro_php] while on the subject...





The php changelog says that the new variables _GET, _POST, _COOKIE, _SERVER,

and _ENV deprecate the old HTTP_xxx_VARS arrays.  This is yet another way

that some little changes in the core language might have a deep impact on

scripts in the future.



There's also a new variable, _REQUEST, which contains all the GET, POST, and

COOKIE variables available.



An interesting thing about the _xxx versions of the variables -- they're

ALWAYS available in any scope.  You don't need to import them into a

function scope using 'global $xxx;' like you did with $HTTP_xxx_VARS.



http://www.php.net/ChangeLog-4.php



Message #2 by "Peter Simard" <peter@p...> on Wed, 13 Feb 2002 15:45:11 -0500
Bang!



*********** REPLY SEPARATOR  ***********



On 2/13/2002 at 10:47 AM Nikolai Devereaux wrote:



>Okay, somebody shoot me.

>

>I did it again.

>

>nik

>

>-----Original Message-----

>From: Nikolai Devereaux [mailto:nikolai@u...]

>Sent: Wednesday, February 13, 2002 10:39 AM

>To: professional php

>Subject: [pro_php] while on the subject...

>

>

>The php changelog says that the new variables _GET, _POST, _COOKIE,

>_SERVER,

>and _ENV deprecate the old HTTP_xxx_VARS arrays.  This is yet another way

>that some little changes in the core language might have a deep impact on

>scripts in the future.

>

>There's also a new variable, _REQUEST, which contains all the GET, POST,

>and

>COOKIE variables available.

>

>An interesting thing about the _xxx versions of the variables -- they're

>ALWAYS available in any scope.  You don't need to import them into a

>function scope using 'global $xxx;' like you did with $HTTP_xxx_VARS.

>

>http://www.php.net/ChangeLog-4.php

>

>




 $subst('Email.Unsub').








  Return to Index