<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iBlog random &#187; email</title>
	<atom:link href="http://blog.zurka.us/tag/email/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zurka.us</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 28 May 2013 20:28:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6</generator>
		<item>
		<title>Email validation with PHP</title>
		<link>http://blog.zurka.us/email-validation-with-php/</link>
		<comments>http://blog.zurka.us/email-validation-with-php/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 20:09:30 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=628</guid>
		<description><![CDATA[This script is more accurate then a normal validation script. After checking if the email is correctly typed in (@) it checks the domain validity by checking it&#8217;s dns records (MX, A and CNAME). A piece of the regex is cut because of my sidebar but if you copy/paste everything you should see it function [&#8230;]]]></description>
				<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;" class="linksalpha_widget">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=iBlog+random&link=http%3A%2F%2Fblog.zurka.us%2Femail-validation-with-php%2F&title=Email+validation+with+PHP&desc=This+script+is+more+accurate+then+a+normal+validation+script.+After+checking+if+the+email+is+correctly+typed+in+%28%40%29+it+checks+the+domain+validity+by+checking+it%27s+dns+records+%28MX%2C+A+and+CNAME%29.+A+piece+of+the+regex+is+cut+because+of+my+sidebar+but+if+you+copy%2Fpaste+everything+you+should+see+it+%3A%29&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=en_US&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=1&twbutton=1&twlang=en&twmention=&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=en&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=en-US">
											</iframe>
										</div><p>This script is more accurate then a normal validation script. After checking if the email is correctly typed in (@) it checks the domain validity by checking it&#8217;s dns records (MX, A and CNAME). A piece of the regex is cut because of my sidebar but if you copy/paste everything you should see it <img src='http://blog.zurka.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="brush: php">
function check_email($email) {
	if( (preg_match(&#039;/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/&#039;, $email)) ||
 		(preg_match(&#039;/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/&#039;,$email)) ) {
 		$host = explode(&#039;@&#039;, $email);
 		if(checkdnsrr($host[1].&#039;.&#039;, &#039;MX&#039;) ) return true;
 		if(checkdnsrr($host[1].&#039;.&#039;, &#039;A&#039;) ) return true;
 		if(checkdnsrr($host[1].&#039;.&#039;, &#039;CNAME&#039;) ) return true;
 	}
 	return false;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/email-validation-with-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
