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

Check DNS error

Tue Oct 28, 2008 2:11 pm

Code:

<?php
   $email
= "[email protected]";
   
$domain = explode("@",$email);
   
$valid = checkdnsrr($domain[1], "ANY");
   if(
$valid)
      echo
"The domain has an MX record!";
   else
      echo
"Cannot locate MX record for $domain[1]!";
?>




Post a reply
  Related Posts  to : Check DNS error
 check if number is odd or even     -  
 check if domain name is taken by php     -  
 check empty number     -  
 code for check availability     -  
 check request was GET or POST     -  
 check keyboard events using C++     -  
 check array contains a value using javascript     -  
 check if file exists     -  
 check folder content using asp     -  
 Check empty string     -  

Topic Tags

PHP Networking