Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.19 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.19 KB

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 ());
}
?>