加入收藏 | 设为首页 | 会员中心 | 我要投稿 开发网_郴州站长网 (http://www.0735zz.com/)- 云通信、区块链、物联设备、云计算、站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php域名whois查询函数

发布时间:2022-06-18 15:33:48 所属栏目:PHP教程 来源:互联网
导读:function whois_hichina($domain) { preg_match(|pre(.+?)/pre|is, @file_get_contents(http://whois.hichina.com/cgi-bin/whois?domain=.$domain.), $whois); $whois[0] = str_replace(友情提示:按注册局要求,过期域名可能会处于注册商自动续费期阶段,您
  function whois_hichina($domain) {
  preg_match("|<pre>(.+?)</pre>|is", @file_get_contents('http://whois.hichina.com/cgi-bin/whois?domain='.$domain.''), $whois);
   
  $whois[0] = str_replace('友情提示:按注册局要求,过期域名可能会处于注册商自动续费期阶段,您在此查询所看到的域名到期日仅供参考<br />请您<a href="http://www.net.cn/has_client/userlogon/user_logon1.asp教程" target="_blank" class="link_gl">进入会员区</a>查看该域名的实际到期时间,并请及时进行续费,谢谢!', '', ($whois[0]));//过滤掉此段文字
   
   
  return $whois[0]);
   
  }
  //新网 whois (非新网提供,只是根据新网自身网站的url修改实现)
  function whois_xinnet($domain) {
  preg_match("|<div class="lytableinfowrap">(.+?)</div>|is", @file_get_contents('http://www.xinnet.cn/modules/agent/serv/pages/domain_whois.jsp?domainnamewhois='.$domain.'&nocode=nocode'), $whois);//开源代码phpfensi.com
   
  return $whois[0];
  }  
  } 

(编辑:开发网_郴州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读