Re: user's ip
| From: | Daniel Rezny | Date: | Tue, 07 Aug 2001 12:24:26 +0000 |
| Subject: | Re: user's ip | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61595@lists.php.net to get a copy of this message | ||
Hello Adrian,
Tuesday, August 07, 2001, 12:25:25 PM, you wrote:
ADC> Hi,
ADC> I am trying to get the ip address of any user browsing a particular page.
ADC> I tried $REMOTE_ADDR but that give me only the remote address. What would
ADC> be the best way?
When you recieve a remote_host_name you can find out a ip with
gethostbyname(String name_recieved)
I hope it helps
--
Best regards,
Daniel mailto:daniel@rezny.sk