zoukankan      html  css  js  c++  java
  • PHP写的域名查询系统whois

    简介:这是PHP写的域名查询系统whois的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。

    class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=330401' scrolling='no'> <?PHP 
    if ($domain) 
    { 
    if ($domain) 
        { 
         
        $fp = fsockopen( "rs.internic.net", 43, &$errno, &$errstr, 10); 
        if (!$fp) 
      { 
        echo "$errstr ($errno)
    n"; 
        } 
        else 
        { 
        fputs($fp, "$domainrn"); 
        while(!feof($fp)) 
            { 
            $buf = fgets($fp,128); 
            if (ereg( "Whois Server:", $buf)) 
                { 
                $server = str_replace( "Whois Server: ", "", $buf); 
                $server = trim($server); 
                } 
            } 
        fclose($fp); 
        } 
        if ($server) 
            { 
            echo "<B>$domain is registered at $server:</B><BR>"; 
            echo "<PRE>"; 
            $fp = fsockopen($server, 43, &$errno, &$errstr, 10); 
            if(!$fp) 
                { 
                echo "Could not open connection to $server on port 43.n"; 
                echo "$errstr ($errno)
    n"; 
                } 
            else 
                { 
                fputs($fp, "$domainrn"); 
                while(!feof($fp)) 
                    { 
                    echo fgets($fp,128); 
                    } 
                fclose($fp); 
                } 
            } 
        else  { 
            echo( "<b>$domain does not appear to be registered.</b><BR>"); 
            } 
        echo ( "</PRE><BR>"); 
        } 
     
    } 
    ?> 
    <FORM ACTION=" <?PHP echo($PHP_SELF); ?>" METHOD="post"> 
     查找 .com, .org, and .net 主机
     
     主机名: <INPUT TYPE="text" NAME="domain" SIZE="40" MAXLENGTH="100"> 
     <INPUT TYPE=submit VALUE="Find out"><INPUT TYPE=reset VALUE="Reset"> 
    </FORM>

    “PHP写的域名查询系统whois”的更多相关文章 》

    爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具

    http://biancheng.dnbcw.info/php/330401.html pageNo:11
  • 相关阅读:
    ant-design-vue a-tree默认展开所有父节点不生效
    CSS模型简介
    一点BFC的看法
    css提高开发效率的必备代码
    CSS模型简介-逆战班
    CSS 样式:常用居中方法
    rem 自适应布局 js 代码
    CSS 样式 :position-absolute 绝对定位属性
    CSS 样式
    CSS样式字体初解
  • 原文地址:https://www.cnblogs.com/ooooo/p/2249364.html
Copyright © 2011-2022 走看看