How i can get ip address

Questions by mrbaliram   answers by mrbaliram

Showing Answers 1 - 5 of 5 Answers

Suparna Dey

  • May 30th, 2006
 

PHP makes REMOTE_ADDR and REMOTE_HOST available for our use, they live
within the
SERVER arrays. So:

REMOTE_ADDR - the IP address of the client

REMOTE_HOST - the host address of the client, if available

Mani

  • Jul 8th, 2006
 

getenv("REMOTE_ADDR"); // get the ip number of the user

  Was this answer useful?  Yes

deepika

  • Aug 9th, 2006
 

u can use SERVER var $_SERVER['SERVER_ADDR'] and getenv("REMOTE_ADDR") functions to get the IP address.

  Was this answer useful?  Yes

Deepak Radhakrishnan

  • Feb 14th, 2007
 

$_SERVER['REMOTE_ADDR'] works for most of the web hosting sites like godaddy.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions