Net_Whois::query()

Net_Whois::query() -- does a whois query

Synopsis

require_once 'Net/Whois.php';

string Net_Whois::query (string $query, string $server)

Описание

Executes a Whois query on a server

Параметр

Возвращаемое значение

string - the data from the Whois request.

Throws

Таблица 49-1. Возможные значения PEAR_Error

Error codeError messageReasonSolution
every " Error connecting to server (Net_Socket says: Error-Message.) " Connection to server failed Check typing of server address and make sure the host is connected to the network.

Замечание: You will not get a PEAR_Error, if the query fails due to a not existing whois object. This can be only done by checking the data returned by query().

Пример


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ