By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,497 Members | 1,287 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,497 IT Pros & Developers. It's quick & easy.

$_SERVER variables under IIS6

P: n/a
Why is it that IIS6 does not provide all the $_SERVER variables,
otherwise available underApache ? Examples being, SERVER_ADDR,
SERVER_PORT ...

Is there any way to declare server variables under IIS ?

Thanks

Apr 17 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
sh*****@gmail.com wrote:
Why is it that IIS6 does not provide all the $_SERVER variables,
otherwise available underApache ? Examples being, SERVER_ADDR,
SERVER_PORT ...

Is there any way to declare server variables under IIS ?

Thanks


Hi,

As can be found at:
http://nl2.php.net/manual/en/reserved.variables.php

------------------------
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.
Regards,
Erwin Moller
Apr 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.