Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-28-2010, 05:49 PM   PM User | #1
CBG
New Coder

 
Join Date: Feb 2010
Location: UK
Posts: 86
Thanks: 24
Thanked 0 Times in 0 Posts
CBG is an unknown quantity at this point
Question Does Windows support: $_SERVER['SCRIPT_FILENAME'] & $_SERVER['REMOTE_ADDR'] ?

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
CBG is offline   Reply With Quote
Old 03-29-2010, 04:30 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
$_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.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:29 PM.


Advertisement
Log in to turn off these ads.