Posts

Showing posts from March, 2019

How to get Zipcode, City from clients IP in Codeigniter 3.0

Create Controller Iplocation first: <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Iplocation extends CI_Controller {   function __construct() {     parent::__construct();     $this->load->library('Geolocation');     $this->load->config('geolocation', true);   } public function info(){     $config = $this->config->config['geolocation'];     $this->geolocation->initialize($config);     $this->geolocation->set_ip_address('49.203.219.172'); // IP to locate     // $this->geolocation->set_format('json');     // OR you can change the format within `config/geolocation.php` config file     $country = $this->geolocation->get_country();     //var_dump($country);     // For more precision     $city = $this-...

How to Install mysql-workbench on ubuntu 16.04

Install mysql-workbench on ubuntu 16.04 sudo apt install mysql-workbench Start mysql-workbench: user@user-HP-2000-Notebook-PC:~$ mysql-workbench Connect with database server: Click on MySQL Connections + to create new database connection. Connect with server: