PHP Classes

File: domain_example.php

Recommend this page to a friend!
  Classes of Steven Pratt   Expired Domain Class   domain_example.php   Download  
File: domain_example.php
Role: Example script
Content type: text/plain
Description: Example Class Use
Class: Expired Domain Class
Domain information retrieval
Author: By
Last change:
Date: 22 years ago
Size: 582 bytes
 

Contents

Class file image Download
<?
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>