Giter VIP home page Giter VIP logo

tony2001 / ip2location-pecl-extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chrislim2888/ip2location-pecl-extension

0.0 2.0 0.0 354 KB

This PECL extension allows you to find the location of an IP address - country, region or state, city, latitude and longitude, US ZIP code, time zone, Internet Service Provider (ISP) or company name, domain name, net speed, area code, weather station code, weather station name, mobile country code (MCC), mobile network code (MNC) and carrier brand, elevation, and usage type.

C 75.04% C++ 9.16% PHP 15.80%

ip2location-pecl-extension's Introduction

================================
IP2Location PECL Extension 6.0.0
================================

This PECL extension allows you to find the location of an IP address - country, region or state, city, latitude and longitude, US ZIP code, time zone, Internet Service Provider (ISP) or company name, domain name, net speed, area code, weather station code, weather station name, mobile country code (MCC), mobile network code (MNC) and carrier brand, elevation, and usage type.

To compile it, you will need to have the ip2location c library (version 6.x) installed.

Install IP2Location C Library (on Linux/Unix)
---------------------------------------------
1) Download the latest ip2location c libray at http://www.ip2loation.com/developers/c.
2) Decompress the archive.
3) Navigate to working directory. example, cd ip2location-c-x.x.x
4) autoreconf -i -v --force
5) ./configure
6) make
7) make install
    
Install PECL extension (on Linux/Unix)
--------------------------------------
1) Decompress the archive.
2) Navigate to working directory.
3) phpize
4) ./configure
5) make
6) make install
7) A successful install will have created ip2location.so and put it into the PHP extensions directory.
8) Open the php.ini file, and add an extension=ip2loation.so line.
9) Restart apache server. Example, /etc/init.d/apache2 restart
10) php -m (You should notice the ip2location module in the list)

For details installation instructions for PHP PECL extensions, please see:
http://www.php.net/manual/en/install.pecl.php

ip2location-pecl-extension's People

Contributors

tony2001 avatar chrislim2888 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.