Location: PHPKode > scripts > Expired Domain Class > expired-domain-class/domain_example.php
<?
include_once("domain.class.php");
?>
<html>
<head>
 <title>Domain LookUp Example</title>
</head>
<body>
<?

$domain = new Domain("goclick.com");

$domain->Lookup();

$info = $domain->Get();
 foreach($info as $key=>$val)
 {
  print "$key = $val<br>";
 }

if(isset($info['whoisserver']))
{
 $domain->SetWhois($info['whoisserver']);
 $domain->Lookup();
 
 $info = $domain->Get();
 
 foreach($info as $key=>$val)
 {
  print "$key = $val<br>";
 }
}
else
{
 foreach($info as $key=>$val)
 {
  print "$key = $val<br>";
 }
}

?>
</body>
</html>
Return current item: Expired Domain Class