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

What is the importance of "action" attribute in a html form?

0 Answers  


What is the difference between for and foreach?

0 Answers  


How do you put a space in html?

0 Answers  


What is overloading in php?

0 Answers  


How to genrate report in wordpress cms

0 Answers  






Without using forms and hidden variables, how to send variables from a PHP script to another URL using POST method?

2 Answers  


How to access a Static Member of a Class in PHP?

0 Answers  


How to select a database in php?

0 Answers  


Is age nominal or ordinal?

0 Answers  


Is php a mvc?

0 Answers  


How can we display information of a variable and readable by human with php?

0 Answers  


Who created numbers?

0 Answers  


Categories