Git Product home page Git Product logo

monip's Introduction

monip

17mon.cn 的PHP扩展版本

#Linux下编译 /path/to/phpize ./configure --with-php-config=/path/to/php-config make && make install

#方法 bool monip_init(string file); file为17monipdb.dat的文件路径,返回false表示失败,true表示初始化成功,NULL表示不需要再次初始化。 20140520-现在该方法如果传入的文件名不同,最后一次的数据将会替换之前的数据。

bool monip_clear(bool clear = 0); 该方法将会释放在查找IP过程中产生的缓存数据。 20140521-现在该方法接受一个参数,为假时只清除ip对应的缓存数据,为真时还将清除monip_init初始化的信息。

array monip_find(string ip); 该方法将会返回IP的对应的地址信息(现已实现gethostbyname)。

#测试结果 monip_find(‘www.baidu.com’); 输出: Array ( [0] => ** [1] => 浙江 )

monip's People

Contributors

codeant avatar shukean avatar

Watchers

 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.