Al posto di Sending query "' . htmlentities($Domain) . '" to server "' ecc ecc... vorrei inserire una frase quando il dominio risulta occupato.. come si può fare?codice:/* Perform the Whois query. */ if ($Domain != '') { /* If no server was specified then automatically determine. */ if ($Server == '--automatic--') { $Server = 'whois.internic.net'; $a = explode(".",$Domain); if (($a[0] > 0) && ($a[0] < 256) && ($a[3] > 0) && ($a[3] < 256)) { $Server = 'whois.arin.net'; } for ($i = 0; $i < sizeof($Servers); $i++) { if (ereg($Servers[$i][0],$Domain,$a)) { $Server = $Servers[$i][1]; break; } } } /* Send the query to the server. */ echo 'Sending query "' . htmlentities($Domain) . '" to server "' . htmlentities($Server) . '": ' . "\n"; $time_start = getmicrotime(); $Raw = RawWhois($Domain,$Server,$Debug); $time_end = getmicrotime(); echo strlen($Raw) . ' bytes, ' . ($time_end - $time_start) . ' seconds ' . "\n"; /* Scan the answer for a redirect. If found then send the query again to the server named in the redirect. */ $Redirect = ''; if (stristr($Raw,'Asia Pacific Network Information Center ') !== FALSE) { $Redirect = 'whois.apnic.net'; } if ((stristr($Raw,'European Regional Internet Registry/RIPE NCC') !== FALSE) || (stristr($Raw,'Allocated to RIPE NCC') !== FALSE)) { $Redirect = 'whois.ripe.net'; } if (ereg(" Whois Server: ([0-9A-Za-z\._-]*)",$Raw,$a)) { $Redirect = $a[1]; } if (ereg("ReferralServer: ([0-9A-Za-z\._/:-]*)",$Raw,$a)) { $Redirect = $a[1]; if (substr($Redirect,0,8) == 'whois://') $Redirect = substr($Redirect,8); } if ($Redirect != '') { echo 'Redirected to: ' . $Redirect . ' ' . "\n"; $RawOriginal = $Raw; echo 'Sending query "' . $Domain . '" to server "' . $Redirect . '": ' . "\n"; $time_start = getmicrotime(); $Raw = RawWhois($Domain,$Redirect,$Debug); $time_end = getmicrotime(); echo strlen($Raw) . ' bytes, ' . ($time_end - $time_start) . ' seconds ' . "\n"; }
grazie