Re: WHOIS in PHP
| From: | Greg Donald | Date: | Mon, 18 Mar 2002 21:49:52 +0000 |
| Subject: | Re: WHOIS in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89028@lists.php.net to get a copy of this message | ||
On Mon, 18 Mar 2002, Brian wrote:
>Hi:
>Does anyone out there know how to execute a WHOIS query from within PHP?
quick and dirty:
#!/usr/bin/php -q
<?
exec("whois destiney.com", $array);
while(list(,$value) = each($array))
echo $value . "\n";
?>
--
-----------------------------------------------------------------------
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/
-----------------------------------------------------------------------