An example of crawling information from another site (domain name query

Source: Internet
Author: User
Tags exit 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 a 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 </FONT> ":
For ($i =0 $i <32; $i + +) {#i
echo $dom [$i];
}
?>
<CENTER>
<form method=post action= ". echo $PHP _self?> ">
<input type= "hidden" name= "FQDN" value= " echo "$domain. $root"?> ">
<input type= "hidden" name= "domain" value= " echo "$domain. $root"?> ">
<input type= "hidden" name= "root" value= " echo $root?> ">
<input type= "Submit" value= "Display domain name registration details" name= "XX" >
</FORM>
</CENTER>
?
Exit
Break
Case "Sorry! You have entered a domain name error </FONT>:
$i = 0;
while ($i <42) {
echo $dom [$i];
$i + +;
}
$i = 51;
while ($dom [$i]) {
echo $dom [$i];
$i + +;
}
Exit
Break

Case "Congratulations: the domain name has not yet been registered for registration </FONT>":
?>
<HTML>
<HEAD>
<TITLE> International Domain name registration query Results </TITLE>
</HEAD>
<body bgcolor= "#FFFFFF" >
<CENTER>
<table border=0 cellpadding=3 width=75%>
<TR>
<TD>
<table border=0 cellpadding=3 width=100%>
<TR>
&LT;TD bgcolor= "#000000" >
<font color= #FFFFFF size=3 SIZE
Face= "Arial, XXFarEastFont-Franklin" > Congratulations: the domain name has not yet been registered and is available for registration </FONT>
<BR>
</TD>
</TR>
</TABLE>
<BR><BR>
</TD>
</TR>
<TR>
<TD>

<BLOCKQUOTE>
<span style= "Font-family:arial black; Font-size:25pt ">2</span>
<span style= "font-family: Song body; Font-size:9pt "><font face=" Arial, Song Body "size=-1>
The International Domain name <strong> "djdjdjdd.com" </strong> that you have queried has not yet been registered. You can register the domain name.
</span>
You can continue to query for other available domain names.
</FONT>
</BLOCKQUOTE>
<p>
<p>

<P>
</BODY>
</HTML>
?
Exit
Break
}
}
?>


<form method= "POST" action= " echo $PHP _self?> ">
<input type= "hidden" name= "Cdomain" value= "2.7" ><input type= "hidden" name= "lookup"
Value= "OK" ><table cellpadding= "0" border= "0" width= "100%" cellspacing= "0" >
&LT;TR align= "center" >
&LT;TD valign= "Middle" >www. <input name= "domain" size= "ten" maxlength= "256" > <font
Size= "+1" ><select name= "root" size= "-1" >
<option value= "com" >.com</option>
<option value= "NET" >.net</option>
<option value= "org" >.org</option>
</select> </font><br>
<br>
<input type= "Submit" value= "International Domain Name Query" name= "Submit" > </td>
</tr>
</table>
</form>

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.