Domain Name query An example domain name query that crawls information from another site

Source: Internet
Author: User
Tags domain name registration
if (Isset ($xx)) {
$dodo = @file ("http://www.e9china.com/cgi-bin/comdns.pl?raw=1&lookup=OK&fqdn=". $fqdn. " &domain= ". $domain." &root= ". $root." &cdomain=2.7 ");
$i = 0;
while ($dodo [$i]) {
echo $dodo [$i];
$i + +;
}
Exit
}
?>
if (Isset ($submit)) {
if ($domain = = "") {echo "Please enter the domain name"; exit;}
$dom = @file ("http://www.e9china.com/cgi-bin/comdns.pl?cdomain=2.7&lookup=OK&domain=". $domain. " &root= ". $root);
$dom 1=substr ("$dom [13]", 19);
$dom 1=chop ($dom 1);
Switch ($dom 1) {
Case "Sorry! The domain name has been registered ":
for ($i =0; $i <32; $i + +) {#i
echo $dom [$i];
}
?>



Exit
Break
Case "Sorry! You have entered a domain name error ":
$i = 0;
while ($i <42) {
echo $dom [$i];
$i + +;
}
$i = 51;
while ($dom [$i]) {
echo $dom [$i];
$i + +;
}
Exit
Break
Case "Congratulations: the domain has not been registered and is available for registration":
?>


<title>International Domain name registration query results</title>














face= "Arial, Song" > Congratulations: the domain has not been registered, you can For registration








2

The international domain name you are querying " djdjdjdd.com " has not been registered. You can register the domain name.

You can continue to query for other available domain names.







!--? exit;
break;
}
}
?>

The above describes a domain name query from other Web site fetching information example domain name query, including the domain name query content, I hope that the PHP tutorial interested friends helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    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.