function get_whois_server($tld) {
$whois = get_whois_server_from_db($tld);
if ($whois == false) {
$data = @file_get_contents("http://www.iana.org/domains/root/db/{$tld}.html") or $error = true;
if ($error == true) die('Invalid domain');
preg_match("/\<\/b\>[\s]*([a-z0-9-\%]+\.[a-z0-9-\%]+(?:\.{1}[a-z0-9-\%]+)*)\</i", $data, $matches);
$whois = $matches[1];
add_whois_server_to_db($tld, $whois);
}
return $whois;
}
欢迎光临 全球主机交流论坛 (https://443502.xyz/) | Powered by Discuz! X3.4 |