RE: Confused - $GLOBALS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm



On 09 December 2004 20:41, Richard Lynch wrote:

> My best guess from skimming your code is that you need:
> 
> global $_POST;

No, he doesn't.

> 
> in the function that uses $_POST.
> 
> Or is $_POST always global anyway?

Yes.

> 
> I always forget, because they changed it around on POST/GLOBALS/etc at
> some point, but only on some of them.  Grrr.

The built-in arrays with names beginning $_ are "superglobals", i.e. always
global anyway.  The only other "superglobal" is $GLOBALS, which is a anming
exception because it existed long before the $_ arrays came into existence.
This has not changed at any point in the life of PHP -- the only change was
the actual introduction of the $_ versions.

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: m.ford@xxxxxxxxxxxxxx
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux