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; } } ?>
|