function email_check($email) { if (!eregi("^[a-z0-9]+([\.%!][_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$", $email)) { $return = false; } else { list($user, $host) = explode("@", $email); if (checkdnsrr($host, "MX") or checkdnsrr($host, "A")) { $return = true; } else { $return = false; } } return $return; }
ÀÚ·áÃâó : http://www.tegi.org
|