PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of NHM TAnveer Hossain Khan  >  .BD whois lookup  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Example script
Class: .BD whois lookup
Query a whois service for a domain from Bangladesh
Author: By
Last change:
Date: 17 years ago
Size: 1,431 bytes


Class file image Download

    This Script will show
    how to use BDWhois class
    @author NHM Tanveer Hossain Khan (Hasan)

/* required lib */
require 'bdwhois.class.php';

    STEP 1:
        init class
    STEP 2:
        set domain name
$bdWhois=new BDWhois("");
$bdWhois=new BDWhois($_REQUEST['domain']);

/* get result */

/* show your data */
printf("<b>Company Name:</b> %s<br />",$bdResult->getNameOfOrganization());
printf("<b>Company Address:</b> %s<br />\r\n",$bdResult->getAddress());
printf("<b>Email:</b> %s<br />",$bdResult->getEmail());
printf("<b>Telephone:</b> %s<br />",$bdResult->getTelephone());

/* Now Laugh :-)) L0L */

<!-- Form for BD Whois search -->
<form action="" method='get'>
   <b>Domain Name:</b> <input type="text" name="domain" value="" />
<!-- END FORM -->

<!-- Source Code -->
<hr />
<a href="?show_class">Show BDWhois.class.php source code</a><br/>
<a href="?show">Show test.php source code</a><br/>

/* check for source */
if(array_key_exists("show_class",$_REQUEST)) {

/* highlight class */
else if(

/* highlight test */

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