domain lookup help please
Posted: Tue Mar 16, 2004 3:59 am
how would i make it to lookup if a domain is taken or not for my hosting site im working on... if anyone could help, thanks!
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
You could do a "host" on it and see if anything comes back. (Assuming you're on a unix-ish system, not Windows)stylezeca wrote:how would i make it to lookup if a domain is taken or not for my hosting site im working on... if anyone could help, thanks!
Code: Select all
$output = pass_thru ("host thebentinel.com");
print ($output);No, wait. There's apparently some builtin functions in PHP that do this and do it right. (Or so the docs claim)TheBentinel.com wrote:You could do a "host" on it and see if anything comes back.