Posted by Siv Hansen on 10/31/05 17:34
Frontlinz wrote:
> How can I obtain my IP address?
>
> I have tried gethostbyname('localhost'), and of course, the output is
> 127.0.0.1 :)
>
> Thanks in advance
you can try $_SERVER['remote_addr']; //will give the users ip. If you
want yours try www.whatismyip.com ;o)
Navigation:
[Reply to this message]
|