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

Answer Posted / shivappa

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

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many records can be stored in mysql table?

550


What is good average session duration?

545


How to get the directory name out of a file path name?

539


What is the use of nl2br() in php?

574


What is the use session in php?

546






What is the php function that removes the last element of the array and returns it?

506


How to get the number of characters in a string?

567


What is variable declaration?

489


What is ci framework in php?

499


Explain mysql_errno()?

551


How do you check is php not empty?

547


What is the difference between apache vs niginx?

603


What is the difference between javascript and php?

523


Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

538


What is the use of "enctype" attribute in a html form?

521