Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Client Ip Address using PHP..

Status
Not open for further replies.

newphpbie

Programmer
Joined
Oct 17, 2003
Messages
110
Location
GB
I was expecting to find an FAQ on this but I guess I was just outter luck.

I'm trying to collect information about the users visiting my site. The web site is hosted on a LAN and I would like to record the IP address of everyone who visits my site.

I've tried using getenv but it doesn't work. It just doesn't seem to assign my variable $ip with a value.

Could this have something to do with ISAPI mode? If so, how would I go about resolving this problem?

TIA.

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top