首页/技术开发/内容

WHOIS类的更改版。

技术开发2024-01-16 阅读()
eregi ("No entries found", $array[$i])):
$this->FOUND=0;
 elseif(eregi( "WHOIS database is down",$array[$i])):
$this->ERROR++;
 $this->FOUND=0;
 elseif(eregi( "Please wait a while and try again",$array[$i])):
$this->ERROR++;
 $this->FOUND=0;
break;
endif;
if(eregi("Whois Server:",$array[$i])):
$this->NEW_WHOIS=trim(substr(trim($array[$i]),(strlen(trim($array[$i]))-13)*(-1)));
$this->FURTHER_INFO=1;
endif;
$i++;
endwhile;

fclose($ptr);

if($this->DATA_COUNT>$this->DATA_MIN):
return($array);
else:
$this->ERROR++;
endif;
else:
$this->ERROR++;
endif;
}


// 国内域名查询
function cnrawlookup ($query, $server) {
if(!$query):
return( "");
endif;

$ptr=$this->connect($server);
if($ptr):
if(!ereg($query, "\n$")):
$query .= "\n";
endif;
fputs($ptr, "$query");
$i=0;
$this->FOUND=1;
while(!feof($ptr)):
$array[$i]=fgets($ptr,$this->MAXLEN);
$this->DATA_COUNT+=strlen(chop($array[$i]));
if(eregi( "No match for", $array[$i]) (北联网教程,专业提供视频软件下载)

第1页  第2页  第3页  第4页  第5页 

……

相关阅读