Welcome Guest, Not a member yet? Register   Sign In
Ip2nation for CodeIgniter
#1

[eluser]Vamsii[/eluser]
Instructions:
Download the attached library and move it to your libraries directory.

Download and import the mysql database (2.8 Mb)

Code:
http://www.ip2nation.com/ip2nation/Download

Example usage

Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Country extends CI_Controller
{
    function __construct()
    {
        parent::__construct();
        $this->load->library('ip2_nation');
    }

    function index()
    {
    echo $this->ip2_nation->country_name();
    }
    
}


its very light weight when compared to other databases. and also accuracy is good.
#2

[eluser]Reza Valinezhad[/eluser]
Thank you. I am using it Smile
#3

[eluser]patos[/eluser]
Hi,
I'm very interested about the library.
I can't find the download link on this forum page :-(

merry christmas

#4

[eluser]Tpojka[/eluser]
[quote author="Vamsii" date="1304434172"]
Code:
http://www.ip2nation.com/ip2nation/Download
[/quote]
#5

[eluser]patos[/eluser]
I'm talking about the link to the library.
#6

[eluser]Tpojka[/eluser]
Try to use (could be) this one: link.




Theme © iAndrew 2016 - Forum software by © MyBB