Re: Empty super globals
| From: | Richard Lynch | Date: | Tue, 07 Aug 2007 23:53:25 +0000 |
| Subject: | Re: Empty super globals | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260357@lists.php.net to get a copy of this message | ||
On Tue, August 7, 2007 10:02 am, Brian Dunning wrote:
> A friends asked me the following and I have no clue:
>
>> There are variables in php called the super globals. Specifically
>> the
>> $_SERVER super globals are coming back as an empty array. The
>> shopping
>> cart that pixami supplied to us requires the $_SERVER super globals.
$_SERVER should not usually be completely empty...
But it might depend on some php.ini config settings to be populated.
Also note that whatever *IS* in $_SERVER is completely dependent on
what the SAPI provides.
PHP doesn't "put things in $_SERVER"
PHP exposes server input variable via $_SERVER
So if what you want isn't in $_SERVER, then it's not there because
your web-server (or CGI or FCGI or CLI) is not providing it in the
first place, so PHP can't expose what isn't there.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?