欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

遍历二字汉字组合拼音域名是否可注册

程序员文章站 2022-06-10 08:44:11
...

详见http://blog.skyx.in/archives/148/ ?phpset_time_limit(0); $interval = 1; //轮询时休息秒数,频率太快会被封 $pinyin = ["a","ai","an","ang","ao","ba","bai","ban","bang","bao","bei","ben","beng","bi","bian","biao","bie","bin","bing","bo","b

详见 http://blog.skyx.in/archives/148/

original, 0, 3);
    if ($code == '210') {
        return true;
    } else {
        return false;
    }
}
 
//通过cnz接口查询是否可用
function isAvailCnz($domain) {
    $api = 'http://www.cnz.co/domain-registration/domain.php?action=caajax&domain_name=';
    $url = $api . $domain;
    $res = json_decode(file_get_contents($url));
    if ($res->status == 'available') {
        return true;
    } else {
        return false;
    }
}
 
file_put_contents('E:\domain.json', json_encode($avail));