Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

validate domain name in php

Sun Nov 30, 2008 7:40 pm

The following code make checking for validation on the domain name ,if it is valid or not ,the code if there is MX record for the passed domain name

Code:

<?php

  
function checkdomainname($Domainname)
{
if(
getmxrr($Domainname, $MXHost))
{
   return
TRUE;
}
return
FALSE;

}

?>




Post a reply
  Related Posts  to : validate domain name in php
 validate mail in jsp     -  
 validate e-mail in php     -  
 validate username     -  
 validate email address in asp     -  
 validate age entered as selection box in javascript     -  
 validate international phone number value     -  
 check if domain name is taken by php     -  
 how to create a sub domain?     -  
 Domain name registrar     -  
 Domain name transfer     -  

Topic Tags

PHP Validation