PHP domain name whois script

With this PHP class is it possible to check the whois information for domain names. If the result for a query is negative that a standard message is given. Special features: String validation for the name part, dynamic select menu for the defined tld's, domain check or full domain query, multiple domain check. New! .eu and .us type domain names are supported now.

PHP Script Download - All update information

Visit here Script Demo - Post here your questions and suggestions.

Last changes and updates:

  • Version 1.22
    Added additional whois server settings (.eu, .us) and the regex pattern is more improved.
  • Version 1.21
    There was small problem if the user requests data about .de domein (denic), the exec function will not work for this kind of tld. I put in the method get_whois_data() an if clause to use for this kind of tld always a socket connection.
  • Version 1.20
    I changed in this class the simple domain check and the method to obtain whois data, because there are several problems with timeouts by calling the whois servers. In this version there are two ways to get the whois data: the old method with fsockopen and (new) via the linux command line with the command "whois -h". The last one is much faster and uses features like re-directing. The class is modified to handle .nl queries while using the "is" parameter.