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...


In yii, how to get ip address?



In yii, how to get ip address?..

Answer / Paritosh Verma

To get the client IP address in Yii, you can use $this->request->userIP. Here's an example:nn```phpnecho $this->request->userIP;```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Yii PHP Framework Interview Questions

How to use session in yii?

1 Answers  


Can we deploy applications to different servers?

1 Answers  


What are the advantages of yii2?

1 Answers  


What are the benefits of yii over other frameworks?

1 Answers  


How to get current controller id in yii ?

1 Answers  


What is the directory structure of yii2?

1 Answers  


How to use delete(), insert() and save() methods in yii2?

1 Answers  


If you have to validate a registrations module for a user, what all can be possible ways, which one is the best?

1 Answers  


How does yii compare with other frameworks?

1 Answers  


What is the purpose of “gii” in yii2?

1 Answers  


What is name of first file the loaded when yii 2.0 framework starts?

1 Answers  


What are the new features acquired in yii2?

1 Answers  


Categories