Re: whois with php
| From: | xm | Date: | Mon, 13 Sep 2004 16:29:08 +0000 |
| Subject: | Re: whois with php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196528@lists.php.net to get a copy of this message | ||
> 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.
Ok, I found one way around, I simply use exec('host $domain'), which returns
a string that is very simple to parse to find if the domain exists or not.
I'm not sure about the integrity of the results though, they seem correct.
Although, since I'm on dialup, it takes a very long time to verify the
results with internic!
If you have other suggestions, please tell us!
Thanks,
xm