- //– Class
- class whois
- {
- const timeout = 30;
- const whoishost = ‘whois.internic.net’;
- $result = “”;
- $errno = 0;
- $errstr=”;
- if ($fd){
- }
- }
- return $result;
- }
- }
- //– Example
- $domain = ‘search-for.com’;
- $result = whois::lookup($domain);
- }else{
- //echo “<hr>”;
- //echo $result;
- }