Re: questions about $_SERVER

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

 



On Feb 13, 2012, at 4:10 AM, Stuart Dallas wrote:

> On 13 Feb 2012, at 06:28, Rui Hu wrote:
> 
>> How PHP sets variables in $_SERVER, say, $DOCUMENT_ROOT? What should I know
>> if I want to modify $_SERVER myself?
> 
> Once your script starts the superglobals are no different to any other variables, except that they're in scope at all times.

That's probably the reason why they are named "SuperGlobals". :-)

But to be more descriptive, these are simply globals that are predefined by php -- see:

http://php.net/manual/en/language.variables.superglobals.php

I believe, (please show me otherwise) there are no "globals" in PHP other than SuperGlobals.

Cheers,

tedd

_____________________
tedd@xxxxxxxxxxxx
http://sperling.com

-- 
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