How to get Ip Address in Codeigniter?By Hardik Savani | June 13, 2016 | | 1319 Viewer | Category : Codeigniter
Share this post:
If you are work on Codeigniter application and you require to get client ip address then you can get easy. you don't need to use $_SERVER variable like native PHP, but Codeigniter provide $this->input. you can fetch easy using following example:
$ip = $this->input->ip_address();
- How to set ANDROID_HOME environment variable in ubuntu?
- AngularJS tooltip using UI Bootstrap tpls HTML example with demo
- Jquery - draggable sortable table rows example demo with bootstrap
- How to change view mode in bootstrap datepicker like yyyy-mm?
- Laravel 5 - generate PDF from html view file and download using dompdf
- How to resolve - tokenmismatchexception in verifycsrftoken.php Laravel 5 Ajax ?
- How to get Ip Address in Laravel 5?
- How to resolve - No supported encrypter found. The cipher and / or key length are invalid. in Laravel 5