Re: getting the IP address off a visitor
| From: | Chris Hewitt | Date: | Mon, 08 Jul 2002 11:27:44 +0000 |
| Subject: | Re: getting the IP address off a visitor | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106074@lists.php.net to get a copy of this message | ||
Sebastian,
Yes, look at the data returned by running phpinfo() and you will see it. As discussed very recently on this list, an IP address is not a good way to determine whether this is a new user or not. I suggest you look in the recent archives for the discussion on this topic.
HTH
Chris
Sebastian Marcu wrote:
Hi there, I am new to PHP and need some help. I was wondering if there is a way to get hold of the IP address of a site visitor with PHP. I'm trying to develop an interaction where the server would recognise a new visitor from a returning visitor via the IP address. Regards, Sebastian