$email_domain = preg_replace('/^.+?@/', '', $email).'.';
if(!checkdnsrr($email_domain, 'MX') && !checkdnsrr($email_domain, 'A')){
echo $email.' doesnot exist';
} else {
echo 'Email Domain '.$email_domain.' exists! ';
}
Thursday, June 12, 2014
Validate Email Domain in PHP
Tuesday, April 22, 2014
Sublime Text - Parse CSV - Find Nth and N-1 th comma from EOL
In Sublime Text - Do A Find [using regular expression] - Apply the below expression
,(?=(?:[^,]*,){16}[^,]*$),(?=(?:[^,]*,){15}[^,]*$)
Subscribe to:
Posts (Atom)