Re: $HTTP_SERVER_VARS not accessible in Functions
| From: | Jason Wong | Date: | Mon, 22 Jul 2002 08:19:50 +0000 |
| Subject: | Re: $HTTP_SERVER_VARS not accessible in Functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108837@lists.php.net to get a copy of this message | ||
On Monday 22 July 2002 13:46, Monty wrote:
> I'm trying to access some settings in the $HTTP_SERVER_VARS[] array, but,
> within a custom function() this array appears empty. In the calling script,
> however, the $HTTP_SERVER_VARS[] array is defined.
>
> I thought this was supposed to be "superglobal" and available on every
> level? If not, is there another command I can use? I also tried $_SERVER[]
> but this appears to be always empty no matter what level I call it on.
$HTTP_SERVER_VARS was never a superglobal. $_SERVER is a superglobal but only
available on php 4.1.X or above. Read the docs for the details.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Unprovided with original learning, unformed in the habits of thinking,
unskilled in the arts of composition, I resolved to write a book.
-- Edward Gibbon
*/