17mon / php Goto Github PK
View Code? Open in Web Editor NEWphp解析dat&datx代码
php解析dat&datx代码
我觉得readme.txt 或 IP.class.php里加下面这种内容会方便初级PHP用户:
/*
全球 IPv4 地址归属地数据库(IPIP.NET 版)
高春辉(pAUL gAO) <[email protected]>
Build 20170905 版权所有 IPIP.NET
(C) 2006 - 2017 保留所有权利,北京天特信科技有限公司
本代码仅用于 DAT 格式,请注意及时更新 IP 数据库版本
数据问题请加 QQ 交流群: 346280296
Code for PHP 5.3+ only!
下载地址: https://www.ipip.net/free_download/
https://github.com/17mon/php
*/
include_once('IP.class.php');
echo "<pre>";
print_r(IP::find('178.159.37.105'));
print_r(IP::find($_SERVER['REMOTE_ADDR']));
echo "</pre>";
echo '<br>也可能是:'.join('',IP::find($ip));
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.