Home > Backend Development > PHP Tutorial > An example of grabbing information from other websites (domain name query)_PHP tutorial

An example of grabbing information from other websites (domain name query)_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-21 16:04:40
Original
1118 people have browsed it

  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 "请输入域名"; 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 "对不起!该域名已被注册":
   for($i=0;$i<32;$i++) { #i
    echo $dom[$i];
                        }
?>



">
">



  
exit;
break;
   case "对不起!您所输入的是域名名称错误":
   $i=0;
   while($i<42) {
   echo $dom[$i];
   $i++;
                   }
   $i=51;
   while($dom[$i])   {
   echo $dom[$i];
   $i++;
                     }
  exit;
  break;

   case "恭喜您:该域名还未被注册过,可供注册":
?>
    
    
    国际域名注册查询结果
    
    


    
    



        
        
        
        
        

            FACE="Arial,宋体">恭喜您:该域名还未被注册过,可供注册
        

        







2

您所查询的国际域名"djdjdjdd.com"尚未被注册。您可以注册该域名。

    您可继续查询其它可注域名。


      



    


    
    
exit;
break;
                   }
                       }
?>



    value="OK">
    
      
    
  
www.       size="+1">

      

      

 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/315958.htmlTechArticle? if (isset($xx)) { $dodo=@file(http://www.e9china.com/cgi-bin/comdns.pl?raw=1fqdn=.$fqdn.quot;.$domain.quot;.$root.quot;); $i=0; while($dodo[$i]) { echo $dodo[$i]; $i++; } exit; }...
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
Latest Issues
Why does it still jump after returning false?
From 1970-01-01 08:00:00
0
0
0
Optimize table indexes in MySQL
From 1970-01-01 08:00:00
0
0
0
Why can't I install it?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template