Jump to content


Photo

what is my ip - code


  • Please log in to reply
2 replies to this topic

#1 php_newbie65

php_newbie65
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 27 August 2006 - 08:11 PM

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?

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 27 August 2006 - 08:14 PM

$ip = getenv(REMOTE_ADDR);
OR
$ip=$_SERVER['REMOTE_ADDR'];

Orio.
Think you're smarty?

(Gone until 20 to November)

#3 php_newbie65

php_newbie65
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 27 August 2006 - 08:17 PM

Wow! Superfast reply! It seems to be easy. Thanx a lot!!!!!!!!!!!!!!!!!!!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users