Re: How to get the IP of a visitor
| From: | mnc at stoic dot net | Date: | Mon, 18 Mar 2002 16:55:59 +0000 |
| Subject: | Re: How to get the IP of a visitor | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88953@lists.php.net to get a copy of this message | ||
On Mon, 18 Mar 2002, Ulrik Witschass wrote:
> Hi, I am new to this list and to PHP, so please excuse any newbie questions
> :)
>
> Want I need to know is how to get either the ISP or the IP of the visitor of
> a page. I guess this is a environment variable, but I don't know which.
> Any help is greatly appreciated :)
It's $REMOTE_ADDR.
The quickest way to see which variables are available is to stick the
function phpinfo() into your page.
miguel