PHP Classes

File: multi_whois_detail.php

Recommend this page to a friend!
  Classes of Olaf Lederer  >  Whois domain  >  multi_whois_detail.php  >  Download  
File: multi_whois_detail.php
Role: Application script
Content type: text/plain
Description: you need this file to get domain details (multi domain request)
Class: Whois domain
Query whois server to get domain information
Author: By
Last change: compatibility update for "register_global = off"
Date: 17 years ago
Size: 1,189 bytes


Class file image Download
// error_reporting(E_ALL);
$whois_detail = new Whois_domain;

if (isset(
$_GET['det'])) {
$dom_parts = explode(".", $_GET['det']);
$whois_detail->tld = $dom_parts[1];
$whois_detail->domain = $dom_parts[0];
$whois_detail->free_string = $servers[$dom_parts[1]]['free'];
$whois_detail->whois_server = $servers[$dom_parts[1]]['address'];
$whois_detail->whois_param = $servers[$dom_parts[1]]['param'];
$whois_detail->full_info = "yes";
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Whois class detail page (example)</title>

<body onLoad="javascript:window.resizeTo(380,440);return false;self.focus()">
  <?php if ($whois_detail->info != "") { ?>
<h2><?php echo "Whois ".$whois_detail->compl_domain."?" ?></h2>
    <?php echo nl2br($whois_detail->info); ?>
  <?php } ?>

For more information send a message to info at phpclasses dot org.