...

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



CBG
03-28-2010, 06:49 PM
Hi,

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.

Regards,
CBG

Fou-Lu
03-29-2010, 05: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum