faqts : Computers : Programming : Languages : PHP : Installation and Setup : Web Servers : Microsoft Internet Information Server (IIS)

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 4 people (75%) answered Yes
Recently 3 of 4 people (75%) answered Yes

Entry

_SERVER['LOCAL_ADDR'] available in CGI not in ISAPI

Apr 18th, 2007 08:00
J de Roij,


I want to check the ip from the server
On windows with php as cgi module i can use _SERVER['local_addr']
but when i run php as isapi module this server var is gone. 
This is very strange because local_addr is a IIS var, so is must be the
same thing for cgi and isapi or am i wrong?