[PHP] whois with php
Hi there, I'm trying to make a simple tool that make a simple check for the availability of a domain name in a certain top-level domain. I use gethostbyname and if it fails, it means the domain is probably not registered. It works great for domains.COM, domains.NET, domains.CA and all domains.[province].CA. However it does not work with biz, org, info or name since all unavailable domains (the ones that are not yet registered) are pointing automatically to some registrar. Anyone have an idea on how to go around this without having to reverse engineer the whois databases? (BTW, is it legal to do such reverse engineering?) Thanks, xm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] WHOIS in PHP
Hi: Does anyone out there know how to execute a WHOIS query from within PHP? Thanks! --Brian Grossberg [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] WHOIS in PHP
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/ --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] WHOIS in PHP
On Mon, Mar 18, 2002 at 02:58:18PM -0500, Brian wrote: Does anyone out there know how to execute a WHOIS query from within PHP? I use this on a NetBSD system: exec(whois -h whois.geektools.com $Domain, $Result); --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] WHOIS in PHP
Read my article on connecting to Internet services (Creating a WHOIS interface): http://www.zend.com/zend/spotlight/connecting.php John -Original Message- From: Analysis Solutions [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 4:48 PM To: PHP List Subject: Re: [PHP] WHOIS in PHP On Mon, Mar 18, 2002 at 02:58:18PM -0500, Brian wrote: Does anyone out there know how to execute a WHOIS query from within PHP? I use this on a NetBSD system: exec(whois -h whois.geektools.com $Domain, $Result); --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php