954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Domain Availability Check

Hello Everybody..

Can you suggest me PHP code to check
whether a domain is available or not...


Thanks in Advance

garyrichard
Newbie Poster
20 posts since Oct 2011
Reputation Points: 10
Solved Threads: 1
 
cereal
Master Poster
709 posts since Aug 2007
Reputation Points: 214
Solved Threads: 120
 

Your Help is appreciated...
But i am a beginner...
and
not able to understand the code on the above link....

I want to understand..how actually domain availability check is done..

garyrichard
Newbie Poster
20 posts since Oct 2011
Reputation Points: 10
Solved Threads: 1
 

Check the README file, there you find instructions and examples:

- http://phpwhois.cvs.sourceforge.net/viewvc/phpwhois/phpwhois/README?revision=1.22&view=markup

bye.

cereal
Master Poster
709 posts since Aug 2007
Reputation Points: 214
Solved Threads: 120
 

It gives and error

Connect failed to: com.whois-servers.net

garyrichard
Newbie Poster
20 posts since Oct 2011
Reputation Points: 10
Solved Threads: 1
 

When? Did you tried to run this example script?

<?php
include('whois.main.php');

$whois = new Whois();
$query = 'daniweb.com';
$result = $whois->Lookup($query,false);
echo "<pre>";
print_r($result);
echo "</pre>";
?>

It works if the script example is in the same directory of the PHPWhois Class.

cereal
Master Poster
709 posts since Aug 2007
Reputation Points: 214
Solved Threads: 120
 

Thank you so much...
It works...

garyrichard
Newbie Poster
20 posts since Oct 2011
Reputation Points: 10
Solved Threads: 1
 

Great :)
then mark it as solved, this will help other users with your same problem, bye :)

cereal
Master Poster
709 posts since Aug 2007
Reputation Points: 214
Solved Threads: 120
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: