Re: questions about $_SERVER

From: Date: Tue, 13 Mar 2012 16:04:59 +0000
Subject: Re: questions about $_SERVER
References: 1 2 3 4 5 6 7 8 9  Groups: php.general 
Request: Send a blank email to php-general+get-317006@lists.php.net to get a copy of this message
On Mar 12, 2012, at 12:04 PM, Daniel Brown wrote: > On Sun, Mar 11, 2012 at 14:16, Tedd Sperling <tedd.sperling@gmail.com> wrote: >> This document clearly states that $GLOBALS is a SuperGlobal -- what am I not understanding >> here? > > You are understanding it correctly, the only thing that's missing > is the population. The variables are defined (set), but not all are > populated. $GLOBALS is a superglobal, you're right; globals set from > userland scripts are not superglobals, but do wind up in the $GLOBALS > array. Thus, all superglobals are globals, but not all globals are > superglobals. So, it's a question of population timing -- I see. Additionally, I like the term "userland" -- I will use it in class. :-) What would be the opposite term, serverland? Thanks, tedd _____________________ tedd.sperling@gmail.com http://sperling.com

« previous php.general (#317006) next »