Re: Find IP address
| From: | David Otton | Date: | Wed, 19 Feb 2003 14:11:40 +0000 |
| Subject: | Re: Find IP address | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136180@lists.php.net to get a copy of this message | ||
On Wed, 19 Feb 2003 14:59:27 +0100, you wrote:
>I'd like when a customer fill in a form to recover his IP address, is there
>a PHP function to do that ?
echo ($_SERVER["REMOTE_ADDR"]);
Be warned: This is NOT a reliable way to identify a user. These days you
are probably /more/ likely to get the address of a proxy than the
address of the user.