phpWhois.org/example.cli.php

15 lines
209 B
PHP
Raw Normal View History

2005-07-16 11:19:30 +00:00
#!/usr/local/bin/php -n
<?php
2005-07-16 15:32:07 +00:00
include('whois.main.php');
2005-07-16 11:19:30 +00:00
if (isset($argv[1]))
$domain=$argv[1];
else
2005-07-16 15:32:07 +00:00
$domain = 'example.com';
2005-07-16 11:19:30 +00:00
$whois = new Whois();
$result = $whois->Lookup($domain);
2005-07-16 11:19:30 +00:00
print_r($result);
?>