一個網域名稱查詢的程式

來源:互聯網
上載者:User
關鍵字 一個網域名稱查詢的程式
(主要用了兩個字串函數implode()和explode)
我製作的網域名稱查詢的原始碼,主要用了兩個字串函數implode()和explode,利用這兩個函數的切割字串的強大功能,可以查詢.com,.net.,org.,cc.,tv下的網域名稱whois。
echo '";
if (isset($string)) 
{
$url = "http://networksolutions.com/cgi-bin/whois/whois?STRING=".$string."&STRING=Search"; 
$str = implode("",file($url));    
$aa= explode("$bb=$aa[1];
$cc=explode("re>",$bb);
$dd= $cc[0];
$ee=explode("e>",$dd);
$ff=implode("
",$ee); 
$hh=explode("$jj=implode("
",$hh);
$kk=explode("Registrant",$jj);
$ll=implode("註冊人",$kk);
$mm=explode("Domain Name",$ll);
$nn=implode("網域名稱",$mm);
$oo=explode("Administrative Contact",$nn);
$pp=implode("管理連絡人",$oo);
$QQ=explode("Technical Contact",$pp);
$ii=implode("技術連絡人",$qq);
$ss=explode("Record last updated on",$ii);
$tt=implode("最後更新日期:",$ss);
$uu=explode("Record expires on",$tt);
$vv=implode("網域名稱到期日:",$uu);
$ww=explode("Record created on",$vv);
$xx=implode("網域名稱註冊日期:",$ww);
$yy=explode("Database last updated on",$xx);
$zz=implode("資料庫更新日期:",$yy);
$aaa=explode("Record updated on",$zz);
$bbb=implode("記錄更新日期:",$aaa);
$ccc=explode("Admin Name",$bbb);
$ddd=implode("管理連絡人",$ccc);
$eee=explode("Tech Name",$ddd);
$whois=implode("技術連絡人",$eee);
}
echo '









'; echo ' '; echo " "; echo " "; echo ' '; echo " "; echo " "; echo ' '; echo " "; echo " "; echo "
";
echo '網域名稱whois查詢系統';
echo "
";
echo '';
echo "
";
echo $whois;
echo "";
echo "
";
echo 'PHPcode.net';
echo "
";
?>
  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.