if(eregi("\.$tld$",$domain)){
$match=$this->Servers[$tld];
return $match;
}这里看过没有??
你的eregi对比字符中用的正表达式好像不是这样..........
\.$tld$
第一个$应该错了(不过不确定)还有,tld是什么来的
为什么只有那function GetServer里面有?

解决方案 »

  1.   

    我错了
    正表达对但function GetServer中的TLD看不懂
    上面的用来干啥的 
      

  2.   

    connect()前面一个}要删除掉,多了一个}
      

  3.   

    var $Servers=array(
    "com.cn"=>"whois.cnnic.net.cn",
    "net.cn"=>"whois.cnnic.net.cn",
    "com"=>"whois.nsiregistry.net",
    "net"=>"whois.nsiregistry.net"
    );$tld = com.cn
    $server = whois.cnnic.net.cn不知道你清楚否?
    list()是将等于号后面的数组里面的一组数据付值到list括号里面的变量里