此代码在调试模式下有效,但在释放模式下无效,我已经检查过here和here,但找不到解决方法
function domainSorgula($domainName, $ext)
{
$server = trim($this->servers[$ext]);
$output = "";
try {
if ($conn = fsockopen($server, 43)) {
fputs($conn, strtolower($domainName) . '.' . $ext . "\r\n");
while (!feof($conn)) {
$output .= fgets($conn, 128);
}
fclose($conn);
if (stristr($output, "No match") ||
stristr($output, "No Data") ||
stristr($output, "No entries") ||
stristr($output, "No entries") ||
stristr($output, "NOT FOUND")) {
$this->durum[$ext]["durum"] = "bos";
} else {
$this->durum[$ext]["durum"] = "dolu";
// $this->durum[$ext]["son"] =substr($output)
}
$bas = strpos($output, "Expiry Date:");
$t = substr($output, $bas, 23);
$tarih = str_replace("Expiry Date:", "", $t);
$this->durum[$ext]["son"] = $tarih;
echo '<pre>';
echo print_r($output);
echo '</pre>';
} else {
}
} catch (exception $e) {
echo $e->getMessage();
}
}
我收到此错误“警告:fsockopen():无法连接到whois.nic.tr:43”
我在做什么错了会寻求帮助