Tag : Ip Address


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 | | 6742 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 | | 1672 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 | | 2324 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 | | 1227 Viewer | Category : PHP
READ MORE

    PHP - autocomplete websites with domain and logo using clearbit API

    PHP - autocomplete websites with domain and logo using clearbit API

    Open Post

    How to send mail using zoho smtp server in PHP Laravel?

    How to send mail using zoho smtp server in PHP Laravel?

    Open Post

    Laravel 5 - line chart example code using google charts API

    Laravel 5 - line chart example code using google charts API

    Open Post

    How to use elasticsearch from scratch in laravel 5?

    How to use elasticsearch from scratch in laravel 5?

    Open Post

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

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

    Open Post

    Laravel 5 - Implement Flash Messages with example

    Laravel 5 - Implement Flash Messages with example

    Open Post