Created
September 19, 2015 12:56
-
-
Save larryli/bd4bdbc1c9209d905817 to your computer and use it in GitHub Desktop.
自动下载 ipip.net 的 17monipdb.dat 然后转换为 qqwry.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// composer require "larryli/ipv4=~1.0" | |
include 'vendor/autoload.php'; | |
$monipdb = new \larryli\ipv4\MonipdbQuery('17monipdb.dat'); | |
if (!$monipdb->exists()) { | |
$monipdb->init(); | |
} | |
$qqwry = new \larryli\ipv4\export\QqwryQuery('qqwry.dat'); | |
$qqwry->setProviders([$monipdb]); | |
$qqwry->init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment