Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Php being an open source is there any support available to it?

0 Answers  


What is the purpose of constant() function?

0 Answers  


how to set session expire(session timeout) using php code

2 Answers  


How to block direct directory access in PHP?

0 Answers  


What software is required to run php?

0 Answers  


What is the difference between indexed and associative array?

0 Answers  


How to set session.gc_maxlifetime properly?

0 Answers  


what is interface in php? how it is use?

10 Answers   Infosys, PHP, Times, Torque Infotech, Wipro,


What is a variable cost example?

0 Answers  


Can you specify the "new line" character in single-quoted strings?

0 Answers  


How to set session.gc_divisor properly?

0 Answers  


How can you get web browser’s details using PHP?

0 Answers  


Categories