一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

域名whois查询函数(万网和新网

时间:2010-09-07 编辑:简简单单 来源:一聚教程网

function whois_hichina($domain) {
preg_match("|

(.+?)
|is", @file_get_contents('http://whois.hichina.com/cgi-bin/whois?domain='.$domain.''), $whois);

$whois[0] = str_replace('友情提示:按注册局要求,过期域名可能会处于注册商自动续费期阶段,您在此查询所看到的域名到期日仅供参考
请您asp教程" target="_blank" class="link_gl">进入会员区查看该域名的实际到期时间,并请及时进行续费,谢谢!', '', ($whois[0]));//过滤掉此段文字


return $whois[0]);

}

//新网 whois (非新网提供,只是根据新网自身网站的url修改实现)
function whois_xinnet($domain) {
preg_match("|

(.+?)
|is", @file_get_contents('http://www.xinnet.cn/modules/agent/serv/pages/domain_whois.jsp教程?domainnamewhois='.$domain.'&nocode=nocode'), $whois);

return $whois[0];
}
}

热门栏目