Re: help - to get client IP
| From: | Jeroen Timmers | Date: | Mon, 11 Feb 2002 12:43:32 +0000 |
| Subject: | Re: help - to get client IP | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16790@lists.php.net to get a copy of this message | ||
Someone please help me of how I could get the client IP using PHP, when i
use $remote_addr it gives me the server IP, Kindly help how I could get the
IP of clients who are connected to my server or website.
$ip = gethostbyname($REMOTE_HOST);
the you got the IP of the remote user.
Jeroen Timmers