<?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>web development tutorials</title>
	<atom:link href="http://www.maheshchari.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maheshchari.com</link>
	<description></description>
	<lastBuildDate>Tue, 28 Feb 2012 22:02:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>fixing text indent in IE7</title>
		<link>http://www.maheshchari.com/fixing-text-indent-in-ie7/</link>
		<comments>http://www.maheshchari.com/fixing-text-indent-in-ie7/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 22:02:15 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=731</guid>
		<description><![CDATA[IE7 text-indent bug in CSS While we are working on SEO implementation for links, headers with images, we display link with back ground image by giving text indent in large negative values. it works on major browsers except on IE7. In order to fix we have to add the text transform to uppercase or camel [...]]]></description>
			<content:encoded><![CDATA[<h1>IE7 text-indent bug in CSS </h1>
<p>While we are working on SEO implementation for links, headers with images, we display link with back ground image by giving text indent in large negative values. </p>
<p>it works on major browsers except on IE7.</p>
<p>In order to fix we have to add the text transform to uppercase or camel case. </p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;style&gt;
.mytextindentelement {
	text-indent:-999999px;
	width:500px;
	text-transform: capitalize;
&nbsp;
}
&lt;/style&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/fixing-text-indent-in-ie7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detect mobile web browsers with PHP</title>
		<link>http://www.maheshchari.com/detect-mobile-web-browsers-with-php/</link>
		<comments>http://www.maheshchari.com/detect-mobile-web-browsers-with-php/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 21:54:42 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[PHP/mysql]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=728</guid>
		<description><![CDATA[Detect mobile web browsers with PHP. We have learned about detecting mobile browsers with Javascript and do need full implementation for mobile devices separately, however we need to detect these mobile browsers on server side and implementing the mobile UI without any redirecting the user. for example : if user browses our website through the [...]]]></description>
			<content:encoded><![CDATA[<h1>Detect mobile web browsers with PHP.</h1>
<p>We have learned about <a href="http://www.maheshchari.com/detect-mobile-browser-with-javascript/">detecting mobile browsers with Javascript</a> and do need full implementation for mobile devices separately, however we need to detect these mobile browsers on server side and implementing the mobile UI without any redirecting the user.</p>
<p>for example :</p>
<p> if user browses our website through the desktop browser we display web interface .</p>
<p>if user browse our website through mobile browser we load the mobile interface . </p>
<p>Here is a small <strong>PHP snippet</strong> that useful to detect almost modern mobile devices based on their <a href="http://www.maheshchari.com/list-of-mobile-phones-os/">mobile OS( operating systems)</a>.</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #000088;">$user_agent</span>       <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_USER_AGENT'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// get the user agent value </span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/Android|webOS|iPhone|iPod|BlackBerry|iPad/i'</span><span style="color: #339933;">,</span><span style="color: #000088;">$user_agent</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">//load mobile interface </span>
<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">//load web interface.</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/detect-mobile-web-browsers-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detect mobile browser with javascript</title>
		<link>http://www.maheshchari.com/detect-mobile-browser-with-javascript/</link>
		<comments>http://www.maheshchari.com/detect-mobile-browser-with-javascript/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 20:52:16 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=726</guid>
		<description><![CDATA[Detect mobile web browsers with Javascript. HTML5 is making the web platform more powerful in a number of different areas. All the Smaprt phones come up with this HTML5 and CSS3 browsers . It is the easy medium to reach the mobile users as HTMl5 has almost all features that mobile native apps have. Now [...]]]></description>
			<content:encoded><![CDATA[<h1>Detect mobile web browsers with Javascript.</h1>
<p>HTML5 is making the web platform more powerful in a number of different          areas. All the Smaprt phones come up with this HTML5 and CSS3 browsers . It is the easy medium to reach the mobile users as HTMl5 has almost all features that mobile native apps have. Now a day all the web site owners want to be their websites need to compatible with these smartphones. </p>
<p>unfortunatley these mobile browsers doesn&#8217;t have all the features as desktop browsers such as large screens,mouse and other hardware specifications. Most of the times we get a situation where our web applications must be optimized  differently from the mobile and desktop. For this we need to detect the user is viewing our website from the desktop browser or mobile browser. </p>
<p>Here is a small <strong>Javscript snippet</strong> that usefull to detect almost modern mobile devices based on their <a href="http://www.maheshchari.com/list-of-mobile-phones-os/">mobile OS( operating systems)</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">userAgent</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/Android|webOS|iPhone|iPod|BlackBerry|iPad/i</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Yea, you are on mobile browser&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Yea, you are on desktop browser&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/detect-mobile-browser-with-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Types of mobile devices</title>
		<link>http://www.maheshchari.com/types-of-mobile-devices/</link>
		<comments>http://www.maheshchari.com/types-of-mobile-devices/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 17:19:22 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=723</guid>
		<description><![CDATA[Types mobile phones A mobile device (also known as a handheld device, handheld computer ) is a small, hand-held computing device, typically having a display screen with touch input and/or a miniature keyboard. The main category of mobile devices include the following devices Personal Digital Assistant (PDA) Smartphones Tablet PC Personal Digital Assistant (PDA) is [...]]]></description>
			<content:encoded><![CDATA[<h1>Types mobile phones</h1>
<p>A mobile device (also known as a handheld device, handheld computer ) is a small, hand-held computing device, typically having a display screen with touch input and/or a miniature keyboard.</p>
<p>The main category of mobile devices include the following devices</p>
<ul>
<li>Personal Digital Assistant (PDA)</li>
<li> Smartphones</li>
<li> Tablet PC</li>
</ul>
<h3>Personal Digital Assistant (PDA) is</h3>
<p> handheld devices that combine elements of computing, telephone/fax, Internet and networking in a single device.&nbsp;<strong>Examples:</strong> Revo,  Hewlett-Packard Jornado,  Compaq iPaq, Toshiba Pocket PC,Palm Pilot</p>
<h3>Smartphone </h3>
<p> combine both mobile phone and handheld computers into a single device. Smartphones allow users to store information (e.g., e-mail), install programs, along with using a mobile phone in one device.<strong>Examples</strong>:  Palm Treo, Blackberry, Nokia T-Mobile , Torq, Motorola Q, I-mate,</p>
<h3>Tablet PC </h3>
<p>Tablet PCs are a type of notebook computer that has an LCD screen on which you can write using a stylus. The handwriting is digitized and can be converted to standard text through handwriting recognition, or it can remain as handwritten text. <strong>Examples</strong> : Samsung Q1, Toshiba Portege,  IBM Thinkpad</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/types-of-mobile-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>list of mobile phones OS</title>
		<link>http://www.maheshchari.com/list-of-mobile-phones-os/</link>
		<comments>http://www.maheshchari.com/list-of-mobile-phones-os/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 15:47:12 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=721</guid>
		<description><![CDATA[A quick list of mobile operating systems A mobile operating system (Mobile OS) is the software operating system that operates on mobile devices such as mobile phones, smartphones, PDAs, and hand-held computers. Mobile OS is a mobile version of an operating system found on computers. Here is the list of most common operating systems (OS) [...]]]></description>
			<content:encoded><![CDATA[<h1>A quick list of mobile operating systems</h1>
<p>A mobile operating system (<strong>Mobile OS</strong>) is the software operating system that operates on mobile devices such as mobile phones, smartphones, PDAs, and hand-held computers. Mobile OS is a mobile version of an operating system found on computers.</p>
<p>Here is the list of most common operating systems (OS) found on smartphones and it&rsquo;s manufacturers.</p>
<ul>
<li><strong>Symbian OS</strong> &ndash; Nokia Cell Phone operating system</li>
<li> <strong>Android OS</strong> &ndash; Google&rsquo;s free, open-source cellphone operating system</li>
<li> <strong>iPhone OS (iOS )</strong> &ndash; Apple&rsquo;s mobile operating system</li>
<li> <strong>BlackBerry OS</strong> &ndash; Proprietary mobile operating system, developed by Research In Motion for its BlackBerry</li>
<li> <strong>Windows Phone 7</strong> ( Windows Mobile ) &ndash; Mobile operating system developed by Microsoft</li>
<li> <strong>Palm OS (Garnet OS)</strong>- mobile operating system initially developed by Palm</li>
<li><strong> Palm webOS</strong> &ndash; Mobile operating system from HP/Palm</li>
<li> <strong>Bada</strong> &#8211; Mobile operating system developed by Samsung Electronics</li>
<li> <strong>Maemo OS</strong> &ndash; from Nokia (open source, GPL)</li>
<li><strong> MeeGo OS</strong> &ndash; from Nokia and Intel (open source, GPL)</li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/list-of-mobile-phones-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>joomla module position</title>
		<link>http://www.maheshchari.com/joomla-module-position/</link>
		<comments>http://www.maheshchari.com/joomla-module-position/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 14:16:55 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=718</guid>
		<description><![CDATA[how to insert module in joomla article What is Joomla module? &#160; Joomla module is code snippet that will get the data from database or its base component can be placed at a pre defined module positions . Module position is a content holder on template. &#160; Can we place this module in Joomla article? [...]]]></description>
			<content:encoded><![CDATA[<h1>how to insert module in  joomla<br />
  article<br />
</h1>
<h2>What is Joomla module?</h2>
<p>&nbsp;</p>
<p>Joomla module is code snippet that will get the data from database or its base component can be placed at a pre defined module positions . Module position is a content holder on template. </p>
<p>&nbsp;</p>
<h2>Can we place this module in Joomla article?</h2>
<p>&nbsp;</p>
<p>As per Joomla  standard we place the modules on pre defined module positions which are pre defined by developer.But in mostly scenorio we need to place them in middle of  article content. thanks to the joomla core plug in &quot;<strong>Content &#8211; Load Modules</strong>&quot; , we can place module in article also. </p>
<p>&nbsp;</p>
<h2>How can we place the Joomla module in article?</h2>
<p>To place a module first we create a module instance from the module manager and give the unique module position like &quot;my_joomla_module_position&quot;. </p>
<p>Now in the article place a short code like below and publish the document. </p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">{loadposition my_joomla_module_position}</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/joomla-module-position/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sending email with PHP (2)</title>
		<link>http://www.maheshchari.com/sending-email-with-php-2/</link>
		<comments>http://www.maheshchari.com/sending-email-with-php-2/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 14:15:01 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[PHP/mysql]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=715</guid>
		<description><![CDATA[Configure PHP email function for windows server. We learnt about sending mail from PHP with linux sendmail in this series of tutorial. On windows we don&#8217;t have pre configured email sever on mostly server. to fix this PHP mail function on windows, we can do with ini_set php function or setting it up on php.ini. [...]]]></description>
			<content:encoded><![CDATA[<h1>Configure PHP email function for windows server.</h1>
<p>We learnt about sending mail from PHP with linux sendmail in this series of <a href="http://www.maheshchari.com/sending-email-with-php-1/">tutorial</a>. On windows we don&#8217;t have pre configured email sever on mostly server. to fix this PHP mail function on windows, we can do with <strong>ini_set</strong> php function or setting it up on php.ini.</p>
<h2>Setting php.ini </h2>
<p>if you have access to php.ini ,you can change the default global value .</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">[mail function]
SMTP = localhost
sendmail_from = me@example.com</pre></div></div>

<h2>Setting at run time ini_set </h2>
<p>we can change this configuration at run time with <strong>ini_set</strong> function as given below. </p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SMTP'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'localhost'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sendmail_from'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'fromaddress@domain.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h2>Example</h2>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SMTP'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'localhost'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sendmail_from'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'fromaddress@domain.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
&nbsp;
<span style="color: #000088;">$to</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'toaddress@domain.com'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$subject</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Sample  subject'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$body</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'message body '</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #990000;">mail</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$to</span><span style="color: #339933;">,</span> <span style="color: #000088;">$subject</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$body</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/sending-email-with-php-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sending email with PHP (1)</title>
		<link>http://www.maheshchari.com/sending-email-with-php-1/</link>
		<comments>http://www.maheshchari.com/sending-email-with-php-1/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 17:10:57 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[PHP/mysql]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=710</guid>
		<description><![CDATA[How to send email in PHP Email ( Electronic mail ) is most popular communication service on internet . Generally it is common practice to use this service as marketing media for digital products. There are a lot of free email service available on internet like Gmail, Yahoo,AOL and more. So as a developer we [...]]]></description>
			<content:encoded><![CDATA[<h1>How to send email in PHP</h1>
<p><strong>Email</strong> (<strong> Electronic mail </strong>) is most popular communication service on internet . Generally it is common practice to use this service as marketing media for digital products.   There are a lot of free email service available on internet like <strong>Gmail</strong>, <strong>Yahoo</strong>,<strong>AOL</strong> and more. </p>
<p>So as a developer we must know the <strong>mail</strong> functionality in PHP like <strong>send mail</strong> with php and <strong>read mail</strong> with PHP imap ,pop functions. in this tutorial we are going to learn how to send the mail with different MIM types and it mail components. </p>
<p>An email message consists of three components, the message <em>envelope</em>, the message <em>header</em>, and the message <em>body</em>. envelope controls the mail sending path like where it originated and where to be sent the mail. header part will denotes the contents of the email and sender and receiver information. body part contains the main user data information.In this series mail tutorial we learn with different PHP functions to send the mail.</p>
<p>On Linux server by default PHP comes with <strong>send mail</strong> or <strong>exim</strong> email server. But on windows PHP must be configured to allow from <strong>SMTP</strong> . </p>
<p>Main PHP <strong>extensions</strong> for email handling are </p>
<ul>
<li>Cyrus </li>
<li>IMAP </li>
<li>Mail</li>
<li>Mailparse</li>
<li>vpopmail</li>
</ul>
<h2>PHP email function</h2>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">mail</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$to</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$subject</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$message</span> <span style="color: #339933;">,</span><span style="color: #000088;">$headers</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>This function takes mainly four parameters, to,subject, message, headers.It will return a boolean that refers if mail is sent successfully or not. </p>
<h2>$to parameter</h2>
<p>$to parameter is a string to recipients of the email , we can give the &#8216;,&#8217; comma separated email address. it can be send for more than one recipients at at time.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$to</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&quot;To Display Name1&quot; &lt;reciever@domain1.dom&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$to</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">',&quot;To Display Name2&quot; &lt;reciever@domain2.dom&gt;'</span><span style="color: #339933;">;</span></pre></div></div>

<h2>$subject parameter</h2>
<pre>$subject="This is my sample subject.";</pre>
<p>$message parameter contain any length of string that is sperated with new line characters . </p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$message</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Sample message line 1 <span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$message</span><span style="color: #339933;">.=</span><span style="color: #0000ff;">&quot;sample message line 2&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>&nbsp;</p>
<h2>$header  parameter</h2>
<p> is the modifier or extending the mail sending option.It has many options ,but we will discuss importent ones here. see below snippet for example.</p>
<pre>
$headers = 'From: "Sender Display Name" <sender@sender.dom>' . PHP_EOL .
'Cc: "CC Display Name" <info@domain.dom>' . PHP_EOL .
'X-Mailer: PHP-' . phpversion() . PHP_EOL.
'MIME-Version: 1.0' . PHP_EOL. 'Content-type: text/plain; charset=UTF-8' . PHP_EOL.
'X-Priority: 1 (Higuest)'.PHP_EOL.
'X-MSMail-Priority: High'.PHP_EOL.
'Importance: High'.PHP_EOL.
'Reply-To: info@example.com'.PHP_EOL.
'Return-Path: info@example.com.PHP_EOL.
'Message-Id: <' . md5(uniqid(microtime())) . '@' . $hostname . '>'.PHP_EOL.
           </pre>
<p>In the above code <strong>PHP_EOL</strong> is PHP constant that represent new line character . </p>
<h2>Main list of email headers</h2>
<p>&#038;nbsp</p>
<p><strong>From,</strong> email header notes from what email address is sent. </p>
<p><strong>Cc</strong> , this email header inform the server that this mail also can be sent to this email address also.</p>
<p><strong>X-Mailer,</strong> this email header inform the mail recipent client about the sender client. </p>
<p><strong>MIME ,</strong> this email header tells about the how the mail should be handle like plain text,html and attachment.</p>
<p><strong>X-Priority,</strong> tells the priority of the email for generel server.</p>
<p><strong>X-MSMail-Priority</strong>, tell the priority of the email for windows server hosted email servers.</p>
<p><strong>Importance</strong>, tells the priority of the email this will work for some of the email server.</p>
<p><strong>Reply-To</strong>, if user reply the sent email ,what the email address it to be taken, if it is not given default is From ,email header.</p>
<p><strong>Return-Path</strong>, if an email is bounced, where to be notified , this can be same email address like From or other email also.this email header can be used to track some email campains .</p>
<p><strong>Message-Id</strong>, is optional email header if we do not provide server will automatically generates and sends. this header can be used to track email campaings also.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/sending-email-with-php-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery form validation example required</title>
		<link>http://www.maheshchari.com/jquery-form-validation-example-required/</link>
		<comments>http://www.maheshchari.com/jquery-form-validation-example-required/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 12:58:43 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[examples]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=699</guid>
		<description><![CDATA[jQuery form validation &#8220;required&#8221; example 1 &#8220;required&#8221; element with HTML &#160; bind simple function by adding simple class to required elements &#8220;required&#8221;. $&#40;'#form1'&#41;.validate&#40;&#41;; jQuery form validation &#8220;required&#8221; example 1 &#8220;required&#8221; element with Javascript parameters &#160; bind function by adding configuration with Javascript only.Here we add custom messages also. $&#40;'#form2'&#41;.validate&#40;&#123; rules:&#123; username2:'required', password2:'required' &#125; ,messages:&#123; username2:&#34;Please [...]]]></description>
			<content:encoded><![CDATA[<p><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.js"></script><br />
<script type="text/javascript">// <![CDATA[
 jQuery().ready(function (){  jQuery('#form1').validate(); jQuery('#form2').validate({ rules:{ 	username2:'required', 	password2:'required' } ,messages:{ 	username2:"Please enter user name.", 	password2:"Please enter password" 	} }); });
// ]]&gt;</script></p>
<h2>jQuery form validation &#8220;required&#8221; example 1</h2>
<h3>&#8220;required&#8221; element with HTML</h3>
<table>
<tbody>
<tr>
<td>
<form id="form1" method="post">
<input id="username" class="required" name="username" type="text" />
<input id="password" class="required" name="password" type="text" />
<input id="button" name="button" type="submit" value="Submit" />
<p>&nbsp;</p>
</form>
</td>
<td>bind simple function by adding simple class to required elements &#8220;required&#8221;.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#form1'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">validate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</td>
</tr>
</tbody>
</table>
<h2>jQuery form validation &#8220;required&#8221; example 1</h2>
<h3>&#8220;required&#8221; element with Javascript parameters</h3>
<table>
<tbody>
<tr>
<td>
<form id="form2" method="post">
<input id="username2" name="username2" type="text" />
<input id="password2" name="password2" type="text" />
<input id="button2" name="button2" type="submit" value="Submit" />
<p>&nbsp;</p>
</form>
</td>
<td>bind function by adding configuration with Javascript only.Here we add custom messages also.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#form2'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">validate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
rules<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>
	username2<span style="color: #339933;">:</span><span style="color: #3366CC;">'required'</span><span style="color: #339933;">,</span>
	password2<span style="color: #339933;">:</span><span style="color: #3366CC;">'required'</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">,</span>messages<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>
	username2<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Please enter user name.&quot;</span><span style="color: #339933;">,</span>
	password2<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Please enter password&quot;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/jquery-form-validation-example-required/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery form validation</title>
		<link>http://www.maheshchari.com/jquery-form-validation/</link>
		<comments>http://www.maheshchari.com/jquery-form-validation/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 21:06:21 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=694</guid>
		<description><![CDATA[jQuery form validation Hello freinds, we know that every dynamic form need to be proper validated through the server and client side. some one get the doubt why we need to be implemented on both client and server side. as per my opinion we just need Server side validation only, but it takes more server [...]]]></description>
			<content:encoded><![CDATA[<h1>jQuery form validation </h1>
<p>Hello freinds, we know that every dynamic form need to be proper validated through the server and client side. some one get the doubt why we need to be implemented on both client and server side. as per my opinion we just need Server side validation only, but it takes more server resources and requests if user doesn&#8217;t submit the data correctly . some one will get question why we can only implment client side validation , i say NO for only client side validation because some users will disable javascript and send the data to server in that case it is useless to implment only client side validation. It is good practice to implement both client and server side validation . </p>
<p>I have created a long <a href="http://www.maheshchari.com/60-validation-functions-with-php/">validation class</a> for PHP and posted in my previous tutorial. now we are going to learn how to implement the client side valdiation with jQuery . for that we have a good <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" target="_blank">jQuery validation plug in</a> , that can be used in many ways. you can see the examples <a href="http://jquery.bassistance.de/validate/demo/" target="_blank">here</a>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/jquery-form-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

