CodeIgniter Forums
Ip2nation for CodeIgniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Ip2nation for CodeIgniter (/showthread.php?tid=41265)



Ip2nation for CodeIgniter - El Forum - 05-03-2011

[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.


Ip2nation for CodeIgniter - El Forum - 05-22-2011

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


Ip2nation for CodeIgniter - El Forum - 12-24-2013

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

merry christmas




Ip2nation for CodeIgniter - El Forum - 12-24-2013

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


Ip2nation for CodeIgniter - El Forum - 12-27-2013

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



Ip2nation for CodeIgniter - El Forum - 12-27-2013

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