<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Silence is everything</title>
	
	<link>http://www.maiq.info</link>
	<description>www.MaiQ.info</description>
	<lastBuildDate>Fri, 05 Dec 2008 10:00:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/SilenceIsEverything" type="application/rss+xml" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">SilenceIsEverything</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Validating emails with php</title>
		<link>http://www.maiq.info/validating-emails-with-php/</link>
		<comments>http://www.maiq.info/validating-emails-with-php/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 10:00:16 +0000</pubDate>
		<dc:creator>maichi</dc:creator>
				<category><![CDATA[Silenced general]]></category>
		<category><![CDATA[Silenced tutorials]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.maiq.info/?p=277</guid>
		<description><![CDATA[
Sanitizing and validating email syntax

$email = $_POST['email']; //getting the posted email
//sanitizing the email using FILTER_SANITIZE_EMAIL
//removes all illegal e-mail characters from a string
$email=filter_var($email, FILTER_SANITIZE_EMAIL);
//validating the email using FILTER_VALIDATE_EMAIL
//validates e-mail returning true if valid and false if invalid
(filter_var($field, FILTER_VALIDATE_EMAIL)) ? TRUE : FALSE;


Creating a function to validate and sanitize

function check($email)  {
     $field=filter_var($field, [...]]]></description>
		<wfw:commentRss>http://www.maiq.info/validating-emails-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sending emails with php</title>
		<link>http://www.maiq.info/sending-emails-with-php/</link>
		<comments>http://www.maiq.info/sending-emails-with-php/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 10:00:24 +0000</pubDate>
		<dc:creator>maichi</dc:creator>
				<category><![CDATA[Silenced general]]></category>
		<category><![CDATA[Silenced tutorials]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.maiq.info/?p=249</guid>
		<description><![CDATA[
Set up the variables:

$to = "email@address.com"; //where the email will go
$subject = "Our Subject"; //the subject
$message = "The message to send"; //the message
$from = "you@email.com"; //from email
$header = "From: $from"; //header including the from email


Sending the email:

mail($to, $subject, $message, $header); //send the email


Sending the email and returning a success or failure message

echo (mail($to, $subject,$message, $header)) [...]]]></description>
		<wfw:commentRss>http://www.maiq.info/sending-emails-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ternary Conditionals</title>
		<link>http://www.maiq.info/ternary-conditionals/</link>
		<comments>http://www.maiq.info/ternary-conditionals/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 10:01:37 +0000</pubDate>
		<dc:creator>maichi</dc:creator>
				<category><![CDATA[Silenced general]]></category>
		<category><![CDATA[Silenced tutorials]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.maiq.info/?p=260</guid>
		<description><![CDATA[I know most of you allready use them, but there are still people that don`t know about them, so to make the following tutorials easyer, I`ll do a small example.
First of all you must know that all you will see here is a simpler way to write not so complex if statements.
Traditional way:

if (condition) {
 [...]]]></description>
		<wfw:commentRss>http://www.maiq.info/ternary-conditionals/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
