How to get Ip Address in Codeigniter?By Hardik Savani | June 13, 2016 | | 1732 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 Uninstall a Package in Laravel 5 Using Composer Command?
- How to check column exists or not in table Laravel 5
- Git - error failed to push some refs to git resolve?
- Jquery Select2 - Select box with search example code
- How to add tooltip Bootstrap?
- Twitter typeahead press enter key go to search page.
- Laravel 5 - How to get difference of time in minutes?
- Laravel 5 export to pdf using maatwebsite example