Re: Empty super globals

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

 



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?

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