PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of namlengoc   PHP Whois Domain Info   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: exmple how to use class whois
Class: PHP Whois Domain Info
Get domain whois information checking IANA first
Author: By
Last change:
Date: 8 years ago
Size: 294 bytes
 

Contents

Class file image Download
$lib_whois = new whois();
$domain = "demo.com";
$whois_server = $lib_whois->get_whois_server($domain);
echo "Whois server registry is ".$whois_server;

$whois_domain = $lib_whois->get_info_domain($domain,$whois_server);
echo "whois info domain <pre>".print_r($whois_domain,true)."</pre>";