Skip to content

Instantly share code, notes, and snippets.

@vinaydotblog
Created March 7, 2012 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinaydotblog/1991274 to your computer and use it in GitHub Desktop.
Save vinaydotblog/1991274 to your computer and use it in GitHub Desktop.
php: check domain availability
<?php
//Check the availability of Domain Name
function check_domain_availability($domain)
{
$recordexists = checkdnsrr($domain, "ANY");
if ($recordexists) echo "The domain name has been taken. Sorry!";
else echo "The domain name is available!";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment