(Mainly using two string functions implode() and explode)
The source code for domain name query I made mainly uses two string functions implode() and explode, and uses these two functions to cut strings With its powerful function, you can query whois domain names under .com, .net., org., cc., and tv.
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:",$ss);
$uu=explode("Record expires on",$tt);
$vv=implode("Domain name Expiration date:",$uu);
$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< ;/font>",$ccc);
$eee=explode("Tech Name",$ddd);
$whois=implode("Technical Contact}
echo '';
echo '';
echo ""; echo 'domain name whois Query system '; echo " | ";
echo "
";
echo '' ;
echo ""; echo ''; echo " "; echo $whois; echo " "; echo " | ";
echo "
";
echo '' ;
echo ""; echo ''; echo " | ";
echo "< ;/tr>";
echo "
";
?>
http://www.bkjia.com/PHPjc/315837.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/315837.htmlTechArticle(mainly using two string functions implode() and explode) The source code of the domain name query I made, Mainly using two string functions implode() and explode, using the cutting characters of these two functions...