An example of capturing information from another website (domain name query)

Source: Internet
Author: User
Tags domain name registration
An example of capturing information from another website (domain name query) 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 "enter domain name"; exit ;}
$ Dom = @ file ("http://www.e9china.com/cgi-bin/comdns.pl? Cdomain = 2.7 & lookup = OK & domain = ". $ domain." & root = ". $ root );
$ Dom1 = substr ("$ dom [13]", 19 );
$ Dom1 = chop ($ dom1 );
Switch ($ dom1 ){
Case "Sorry! This domain name has been registered ":
For ($ I = 0; $ I <32; $ I ++) {# I
Echo $ dom [$ I];
}
?>



Exit;
Break;
Case "Sorry! The domain name you entered is incorrect ":
$ I = 0;
While ($ I <42 ){
Echo $ dom [$ I];
$ I ++;
}
$ I = 51;
While ($ dom [$ I]) {
Echo $ dom [$ I];
$ I ++;
}
Exit;
Break;

Case "Congratulations: This domain name has not been registered and can be registered ":
?>


International Domain Name Registration Query Results














FACE = "Arial, "> Congratulations, this domain name has not been registered and is available for registration.









2

The international domain name you are querying "Djdjdjdd.com"Not yet registered. You can register this domain name.

You can continue to query other noteable domain names.








Exit;
Break;
}
}
?>


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.