View Full Version : Does Windows support: $_SERVER['SCRIPT_FILENAME'] & $_SERVER['REMOTE_ADDR'] ?

03-28-2010, 05:49 PM

I am making a Modifiaction for a script and I am using the PHP code $_SERVER['SCRIPT_FILENAME'] and $_SERVER['REMOTE_ADDR']
I would like it to work with both Linux and Windows Hosting.

Can some tell me if it is suppoted before Windows 2003 and IIS 6?

I have tested this on a Windows 2003 Server Hosting, running IIS 6, so I am presume it will be support on newer versions.


03-29-2010, 04:30 PM
$_SERVER never makes a guarentee that it will be set; however, in my experience, both SCRIPT_FILENAME and REMOTE_ADDR will always exist in a web based environment. I have been able to retrieve these through both Apache and IIS.
Best I know, these have been around since PHP3(ish). They should be available anytime after, and I suspect until the end of PHP's life.