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

How to create a text file in PHP?

0 Answers  


What is the functionality of md5 function in php?

0 Answers  


Which is the best method to fetch the data from mysql? 1.mysql_fetch_array() 2.mysql_fetch_object() 3.mysql_fetch_row() 4.mysql_fetch_assoc()

6 Answers  


How to check an element is exists in array or not in php?

0 Answers  


Explain me is it possible to destroy a cookie?

0 Answers  






What is smarty?

0 Answers  


What is the content of /etc directory?

0 Answers  


What are the advantages of php mysql?

0 Answers  


How to check whether cookies are disbled or not in the browser ? If that is the case how do you handle the sessions ?

1 Answers  


Is php used anymore?

0 Answers  


How to pass an argument to a function?

0 Answers  


Explain about PHP cookies?

0 Answers  


Categories