14 lines
209 B
PHP
14 lines
209 B
PHP
#!/usr/local/bin/php -n
|
|
<?php
|
|
include('whois.main.php');
|
|
|
|
if (isset($argv[1]))
|
|
$domain=$argv[1];
|
|
else
|
|
$domain = 'example.com';
|
|
|
|
$whois = new Whois();
|
|
$result = $whois->Lookup($domain);
|
|
|
|
print_r($result);
|
|
?>
|