Hello Everybody..

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


Thanks in Advance

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..

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.

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.