string $query - the Whois database object to look up
string $server - the name of the server or its IP address
Table 48-1. Possible PEAR_Error values
Error code | Error message | Reason | Solution |
---|---|---|---|
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. |
Note: 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().
Example 48-1. Using Whois-query()
|