Jump to content

Archived

This topic is now archived and is closed to further replies.

php_newbie65

what is my ip - code

Recommended Posts

Damn. I would like to show my visitors the own ip-address. example: http://www.ip-adress.com

Im to stupid to do it. Grmpf....  :-\ :-\ :-\ :-\ :-\ :-\ :-\ :-\ :-\ :-\ :-\

Can someone tell me how to do it?

Share this post


Link to post
Share on other sites
$ip = getenv(REMOTE_ADDR);
OR
$ip=$_SERVER['REMOTE_ADDR'];

Orio.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.