$_SERVER variables under IIS6

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Why is it that IIS6 does not provide all the $_SERVER variables,
otherwise available underApache ? Examples being, SERVER_ADDR,

Is there any way to declare server variables under IIS ?


Re: $_SERVER variables under IIS6

sharadg@gmail.com wrote:

Quoted text here. Click to load it


As can be found at:

Server variables: $_SERVER

    Note: Introduced in 4.1.0. In earlier versions, use $HTTP_SERVER_VARS.  

$_SERVER is an array containing information such as headers, paths, and  
script locations. The entries in this array are created by the webserver.

(!) --> There is no guarantee that every webserver will provide any of  
these; servers may omit some, or provide others not listed here. That said,  
a large number of these variables are accounted for in the CGI 1.1  
specification, so you should be able to expect those.  

Erwin Moller

Site Timeline