Home > Backend Development > PHP Tutorial > A domain name query program_PHP tutorial

A domain name query program_PHP tutorial

WBOY
Release: 2016-07-21 16:04:49
Original
908 people have browsed it

(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 '

';
echo '';
echo '< ;input type="submit" value="query">';
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 "";
echo '' ;
echo "";
echo "";
echo '' ;
echo "";
echo "< ;/tr>";
echo "
";
echo '
domain name whois Query system
';
echo "
";
echo '
';
echo "
";
echo $whois;
echo "
";
echo "
";
echo '';
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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template