<?
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>
|