GithubHelp home page GithubHelp logo

generateip's Introduction

generateIP

根据省份名称随机生成对应省份IPV4地址

目录文件

QueryList.class.php             // PHP采集类
phpQuery                        // QueryList类所需文件目录
IP.class.php                    // 主IP生成类
ip_segment.php                  // 采集生成的IPV4地址段

使用说明

引入IP类

require 'IP.class.php';

方法使用

不指定省份名,将随机生成国内IPV4地址
$ip_address = IP::generate();
指定省份名生成对应省份IPV4地址
$ip_address = IP::generate('安徽');
更新各省IPV4地址段
IP::update();

文件包含省份:

* 北京
* 广东
* 山东
* 浙江
* 江苏
* 上海
* 辽宁
* 四川
* 河南
* 湖北
* 福建
* 湖南
* 河北
* 重庆
* 山西
* 江西
* 陕西
* 安徽
* 黑龙江
* 广西
* 吉林
* 云南
* 天津
* 内蒙
* **
* 甘肃
* 贵州
* 海南
* 宁夏
* 青海
* 西藏

generateip's People

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.