Skip to content

OOPS-ORG-PHP/WHOIS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WHOIS pear package

GitHub license

Description

Whois gateway PHP class

  1. support IP address lookup
  2. print result with auto recursion

License

BSD 2 clause

Reference

http://pear.oops.org/docs/WHOIS/WHOIS.html

reference is written by Korean. If you can't read korean, use google translator.

Installation

[root@host ~] pear channel-discover pear.oops.org
Adding Channel "pear.oops.org" succeeded
Discovery of channel "pear.oops.org" succeeded
[root@host ~] pear install oops/WHOIS

Dependency

Sample codes

<?php
require_once 'WHOIS.php';
set_error_handler ('myException::myErrorHandler');

try {
    $w = new oops\WHOIS;
    $whois = $w->lookup ($argv[1]);

    print_r ($whois);

} catch ( myException $e ) {
    echo $e->Message () . "\n";
    print_r ($e->TraceAsArray ());
}
?>