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

What is orm in php framework?

487


How to include a file code in different files in php?

503


What sized websites have you worked on in the past?

527


Can constructor be private in php?

529


How many types of session are there?

535






What is the difference between for and foreach in php?

487


Is null function in php?

560


Explain me what is the goto statement useful for?

472


What are advantages of .htaccess?

524


What is the difference between null and empty?

567


How to track no of user logged in?

623


What does echo mean in php?

548


What is the use of $_request variable?

567


How do functions work?

532


What is smarty?

491