function validate_email($email){
$exp="^[a
if(eregi($exp
if(checkdnsrr(array_pop(explode("@"
return true;
}else{
return false;
}
}else{
return false;
}
}
注意
function myCheckDNSRR($hostName
if(!emptyempty($hostName)){
if( $recType==
exec("nslookup
foreach($result as $line){
if(eregi("^$hostName"
return true;
}
}
return false;
}
return false;
}
From:http://tw.wingwit.com/Article/program/PHP/201311/21238.html