Re: ip address
| From: | Philip Thompson | Date: | Thu, 30 Sep 2004 06:16:33 +0000 |
| Subject: | Re: ip address | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36471@lists.php.net to get a copy of this message | ||
balwant,
It seems to be working for me. I have looked at it from multiple computers, and it always gives the ip of that computer. Try for yourself:
http://housing.uark.edu/resnet/ip.php
Let me know if you get something other than your ip.
~Philip
balwantsingh wrote:
i tried the $_SERVER['REMOTE_ADDR'] it is giving ip address of server which is hosting the webpage not the user's ip address. pls. suggest how can IP address of an user can be obtained. with best wishes balwant -----Original Message----- From: Philip Thompson [mailto:prthomp@uark.edu] Sent: Thursday, September 30, 2004 3:45 AM To: php-db@lists.php.net Subject: [PHP-DB] Re: getenv() alternative Oh, before I get a slew of emails about this one, I think I figured it out: $_SERVER['REMOTE_ADDR'] I knew it couldn't have been that difficult... brain fart! Sorry for wasting your time. ~Philip On Sep 29, 2004, at 5:02 PM, Philip Thompson wrote:Hi all. I am needing to obtain the IP address of a user who logs into the system. I tried to use-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpgetenv("REMOTE_ADDR"), however, this function does not work in ISAPI mode, which is what I am running. Is there an alternative to obtaining the IP address? I have looked around, but I cannot seem to find anything. Thanks in advance, ~Philip