Tag : IP


How to get location information from ip address in Laravel ?

Sometimes, we may require to get user information from ip address in Laravel 5 application at that time this article can help to get info from IP. We can get information from IP Address using "stevebauman/location" composer package for Laravel. "stevebauman/location" through we can get info like country Name, country Code, region Code, region Name, city Name, zip Code, iso Code, postal Code, latitude, longitude, metro Code, metro Code. They will provide bellow following details that they can get from IP. So first we require to install "stevebauman/location" composer package by using followin.....

By Hardik Savani | January 11, 2017 | | 14059 Viewer | Category : Laravel
READ MORE

How to get Ip Address in Codeigniter?

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: <strong>Example:</strong> <pre> $ip = $this->input->ip_address(); print_r($ip); </pre>

By Hardik Savani | June 13, 2016 | | 2517 Viewer | Category : Codeigniter
READ MORE

How to get ip address in jquery?

you can get ip address in jquery using getJSON(). If you need to get ip address in your js file you can get easily. In this example you can see how to get ip address in jquery. So let's try with this... <strong>Example</strong> <pre class="prettyprint lang-php"> <html lang="en"> <head> <title>Jquery - get ip address</title> <script type="text/javascript" src="//cdn.jsdelivr.net/jquery/1/jquery.min.js"></script> </head> <body> <br/> <h1>Your Ip Address : <span class="ip"></span></h1> <br/> <script type="text/java.....

By Hardik Savani | June 8, 2016 | | 3503 Viewer | Category : Javascript jQuery
READ MORE

How to get ip address using php code?

Whenever you require to get current user ip address then bellow example will help you. you can find client ip address using $_SERVER variable in php. As you can see bellow example how to find use ip address. <strong>Example:</strong> <pre class="prettyprint lang-php"> <?php <br> function getClientIp() { $ipAddress = ''; if (isset($_SERVER['HTTP_CLIENT_IP'])){ $ipAddress = $_SERVER['HTTP_CLIENT_IP']; } else if(isset($_SERVER['REMOTE_ADDR'])){ $ipAddress = $_SERVER['REMOTE_ADDR']; }else{ $ipAddress = 'UnKnown'; }.....

By Hardik Savani | May 17, 2016 | | 1581 Viewer | Category : PHP
READ MORE

How to get Ip Address in Laravel 5?

If you are work on laravel 5 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 laravel 5 provide Request facade. you can fetch easy using following example: <strong class="example">Example</strong> <pre class="prettyprint php"> public function ImpressionCount(Request $request) { $input['ip'] = $request->ip(); print($input); } </pre>

By Hardik Savani | March 29, 2016 | | 15627 Viewer | Category : Laravel
READ MORE

    Bootstrap multiselect dropdown in popup using popupMultiSelect plugin

    Bootstrap multiselect dropdown in popup using popupMultiSelect plugin

    Open Post

    Laravel 5 create and download zip file example using chumper/zipper composer package

    Laravel 5 create and download zip file example using chumper/zipper composer package

    Open Post

    PHP - Infinite Scroll Pagination using JQuery Ajax Example

    PHP - Infinite Scroll Pagination using JQuery Ajax Example

    Open Post

    How to disable model timestamps in Laravel 5.3?

    How to disable model timestamps in Laravel 5.3?

    Open Post

    Laravel 5 dynamic autocomplete search using select2 JS Ajax - Part 2

    Laravel 5 dynamic autocomplete search using select2 JS Ajax - Part 2

    Open Post

    Bootstrap - Jquery multiple select with checkboxes example using bootstrap-multiselect.js plugin

    Bootstrap - Jquery multiple select with checkboxes example using bootstrap-multiselect.js plugin

    Open Post