Whois gateway PHP class
- support IP address lookup
- print result with auto recursion
BSD 2 clause
http://pear.oops.org/docs/WHOIS/WHOIS.html
reference is written by Korean. If you can't read korean, use google translator.
[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
- PHP >= 5.3.0
- Pear packages
- myException >= 1.0.1
<?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 ());
}
?>