what method is used to get a user's IP address?

Answers were Sorted based on User's Feedback



what method is used to get a user's IP address?..

Answer / mahidhar

$_SERVER['REMOTE_ADDR']

Is This Answer Correct ?    14 Yes 0 No

what method is used to get a user's IP address?..

Answer / shivappa

echo $_SERVER['REMOT_ADDR'];
it returns client IP Address

Is This Answer Correct ?    13 Yes 3 No

Post New Answer

More PHP Interview Questions

Name some of the constants in php and their purpose.

0 Answers  


How can I check if a value is already in an array?

3 Answers   Rushmore Consultancy,


How to check an key is exists in array?

0 Answers  


How to find a length of a string in php?

1 Answers  


Explain me what is the goto statement useful for?

0 Answers  






Is empty java?

0 Answers  


What are the different ways to login to a remote server?

0 Answers  


Is empty in excel?

0 Answers  


How can we extract string ?allinterview.com ? from a string ?http://info@allinterview.com? using regular expression of PHP?

6 Answers  


Is null check in php?

0 Answers  


What is a php trait?

0 Answers  


How do you create an array in php?

0 Answers  


Categories