摘要:functionwhois_hichina($domain){preg_match("|<pre>(.+?)<pre>|is",@file_get_contents('http:whois.hichina.comcgi-binwhois?domain=&amp...
轉(zhuǎn)載請(qǐng)注明來源:php域名whois查詢函數(shù)
  1. function whois_hichina($domain) { 
  2. preg_match("|<pre>(.+?)</pre>|is", @file_get_contents('http://whois.hichina.com/cgi-bin/whois?domain='.$domain.''), $whois); 
  3.  
  4. $whois[0] = str_replace('友情提示:按注冊(cè)局要求,過期域名可能會(huì)處于注冊(cè)商自動(dòng)續(xù)費(fèi)期階段,您在此查詢所看到的域名到期日僅供參考<br />請(qǐng)您<a >, '', ($whois[0]));//過濾掉此段文字 
  5.  
  6.  
  7. return $whois[0]); 
  8.  
  9. //新網(wǎng) whois (非新網(wǎng)提供,只是根據(jù)新網(wǎng)自身網(wǎng)站的url修改實(shí)現(xiàn)) 
  10. function whois_xinnet($domain) { 
  11. 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 
  12.  
  13. return $whois[0]; 
  14. }  
轉(zhuǎn)載請(qǐng)注明來源:php域名whois查詢函數(shù)

  哈爾濱品用軟件有限公司致力于為哈爾濱的中小企業(yè)制作大氣、美觀的優(yōu)秀網(wǎng)站,并且能夠搭建符合百度排名規(guī)范的網(wǎng)站基底,使您的網(wǎng)站無需額外費(fèi)用,即可穩(wěn)步提升排名至首頁。歡迎體驗(yàn)最佳的哈爾濱網(wǎng)站建設(shè)