Location: PHPKode > scripts > domain > domain/examples_domain.php


// Initializing class
$domain=new domain("test.com");

// Printing out whois data
echo $domain->info()."<br>";

// Printing out whois data in HTML format
echo $domain->html_info()."<br><br>";

// Checking if domain is available
    echo "Domain is available<br>";
    echo "Domain is not Available<br>";

// Printing out whois host of domain
echo "Whois Server: ".$domain->get_whois_server()."<br>";

// Printing out name of domain without tld
echo "Domain: ".$domain->get_domain()."<br>";

// Printing out tld name of domain
echo "Tld: ".$domain->get_tld()."<br>";

// Checking if domain name is valid
    echo "Domain name is valid!<br>";
    echo "Domain name isn't valid!<br>";

// Getting all suppoerted TLD's
	echo $tlds[$i]."<br>";

Return current item: domain