Home  >  Article  >  Backend Development  >  Domain name registration batch query A domain name query program

Domain name registration batch query A domain name query program

WBOY
WBOYOriginal
2016-07-29 08:33:221884browse

(Mainly using two string functions implode() and explode)
The source code for domain name query I made mainly used two string functions implode() and explode, using the power of these two functions to cut strings Function, you can query the domain name whois under .com, .net., org., cc., tv.
echo '

';
echo '';
echo '';
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); <br>$hh=explode("</p",$ff); <br>$jj=implode("
",$hh);
$kk =explode("Registrant",$jj);
$ll=implode("Registrant",$kk);
$mm=explode("Domain Name",$ ll);
$nn=implode("Domain Name",$mm);
$oo=explode("Administrative Contact",$nn);
$pp=implode( "Manage Contacts",$oo);
$qq=explode("Technical Contact",$pp);
$ii=implode("",$qq);
$ss=explode("Record last updated on",$ii);
$tt=implode("Last updated date: ",$ss);
$uu=explode("Record expires on",$tt);
$vv=implode("Domain name expiration date:$ww=explode("Record created on",$vv);
$xx=implode("Domain name registration date:",$ww );
$yy=explode("Database last updated on",$xx);
$zz=implode("Database update date:",$yy);
$ aaa=explode("Record updated on",$zz);
$bbb=implode("Record updated date:",$aaa);
$ccc=explode(" Admin Name",$bbb);
$ddd=implode("Administrative Contact",$ccc);
$eee=explode("Tech Name",$ddd) ;
$whois=implode("Technical Contact",$eee);
}
echo '
';
echo '';
echo "";
echo "";
echo '';
echo "";
echo "";
echo '';
echo "";
echo "";
echo "
";
echo '
Domain name whois query system
';
echo "
";
echo '
';
echo "
";
echo $whois;
echo "< /div>";
echo "
";
echo '';
echo "
";
? >

The above introduces the domain name registration batch query. A domain name query program, including the content of domain name registration batch query. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn