Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
03-28-2010, 05:49 PM #1
- Join Date
- Feb 2010
- Thanked 0 Times in 0 Posts
Does Windows support: $_SERVER['SCRIPT_FILENAME'] & $_SERVER['REMOTE_ADDR'] ?
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 #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,659 Times in 2,628 Posts
$_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.
header('HTTP/1.1 420 Enhance Your Calm');