<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Sathyendra's Blog</title>
	<atom:link href="http://sathyendra.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sathyendra.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 13 Jan 2009 13:27:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sathyendra.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Sathyendra's Blog</title>
		<link>http://sathyendra.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sathyendra.wordpress.com/osd.xml" title="Sathyendra&#039;s Blog" />
	<atom:link rel='hub' href='http://sathyendra.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Simple Image Swaping or Slide Show using Java Script</title>
		<link>http://sathyendra.wordpress.com/2009/01/13/simple-image-swaping-or-slide-show-using-java-script/</link>
		<comments>http://sathyendra.wordpress.com/2009/01/13/simple-image-swaping-or-slide-show-using-java-script/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 13:27:03 +0000</pubDate>
		<dc:creator>sathyendra</dc:creator>
				<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Image Swap using Javascript]]></category>
		<category><![CDATA[setInterval() in javascript]]></category>
		<category><![CDATA[Slide Show using Java Script]]></category>
		<category><![CDATA[Swaping using Javasrcipt]]></category>

		<guid isPermaLink="false">http://www.inetminds.com/?p=138</guid>
		<description><![CDATA[Its very simple to create a slide show using JavaScript. function f1(){ if(document.getElementById("d1").style.display=='block'){ document.getElementById("d1").style.display='none'; document.getElementById("d2").style.display='block'; document.getElementById("d3").style.display='none'; document.getElementById("d4").style.display='none'; document.getElementById("d5").style.display='none'; } else if(document.getElementById("d2").style.display=='block'){ document.getElementById("d1").style.display='none'; document.getElementById("d2").style.display='none'; document.getElementById("d3").style.display='block'; document.getElementById("d4").style.display='none'; document.getElementById("d5").style.display='none'; } else if(document.getElementById("d3").style.display=='block'){ document.getElementById("d1").style.display='none'; document.getElementById("d2").style.display='none'; document.getElementById("d3").style.display='none'; document.getElementById("d4").style.display='block'; document.getElementById("d5").style.display='none'; } else if(document.getElementById("d4").style.display=='block'){ document.getElementById("d1").style.display='none'; document.getElementById("d2").style.display='none'; document.getElementById("d3").style.display='none'; document.getElementById("d4").style.display='none'; document.getElementById("d5").style.display='block'; } else if(document.getElementById("d5").style.display=='block'){ document.getElementById("d1").style.display='block'; document.getElementById("d2").style.display='none'; document.getElementById("d3").style.display='none'; document.getElementById("d4").style.display='none'; document.getElementById("d5").style.display='none'; } } window.onload=function(){ setInterval("f1()", 3000) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=138&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Its very simple to create a slide show using JavaScript.</p>
<pre class="html">

function f1(){
if(document.getElementById("d1").style.display=='block'){
  document.getElementById("d1").style.display='none';
  document.getElementById("d2").style.display='block';
  document.getElementById("d3").style.display='none';
  document.getElementById("d4").style.display='none';
  document.getElementById("d5").style.display='none';
} else if(document.getElementById("d2").style.display=='block'){
  document.getElementById("d1").style.display='none';
  document.getElementById("d2").style.display='none';
  document.getElementById("d3").style.display='block';
  document.getElementById("d4").style.display='none';
  document.getElementById("d5").style.display='none';
} else if(document.getElementById("d3").style.display=='block'){
  document.getElementById("d1").style.display='none';
  document.getElementById("d2").style.display='none';
  document.getElementById("d3").style.display='none';
  document.getElementById("d4").style.display='block';
  document.getElementById("d5").style.display='none';
} else if(document.getElementById("d4").style.display=='block'){
  document.getElementById("d1").style.display='none';
  document.getElementById("d2").style.display='none';
  document.getElementById("d3").style.display='none';
  document.getElementById("d4").style.display='none';
  document.getElementById("d5").style.display='block';
} else if(document.getElementById("d5").style.display=='block'){
  document.getElementById("d1").style.display='block';
  document.getElementById("d2").style.display='none';
  document.getElementById("d3").style.display='none';
  document.getElementById("d4").style.display='none';
  document.getElementById("d5").style.display='none';
  }
}
window.onload=function(){
setInterval("f1()", 3000)
}
<div id="d1" style="display:block;"> <img src="Druv.jpg" /> </div>
<div id="d2" style="display:none;"> <img src="DSC00177.jpg" /> </div>
<div id="d3" style="display:none;"> <img src="family 2.jpg" /> </div>
<div id="d4" style="display:none;"> <img src="s2-6x8-2.jpg" /> </div>
<div id="d5" style="display:none;"> <img src="Vanda.jpg" /> </div>
</pre>
<p>Above code can be divided into 2 parts. that is javascript and html.</p>
<pre class="js">
function f1(){
if(document.getElementById("d1").style.display=='block'){
  document.getElementById("d1").style.display='none';
  document.getElementById("d2").style.display='block';
  document.getElementById("d3").style.display='none';
  document.getElementById("d4").style.display='none';
  document.getElementById("d5").style.display='none';
} else if(document.getElementById("d2").style.display=='block'){
  document.getElementById("d1").style.display='none';
  document.getElementById("d2").style.display='none';
  document.getElementById("d3").style.display='block';
  document.getElementById("d4").style.display='none';
  document.getElementById("d5").style.display='none';
} else if(document.getElementById("d3").style.display=='block'){
  document.getElementById("d1").style.display='none';
  document.getElementById("d2").style.display='none';
  document.getElementById("d3").style.display='none';
  document.getElementById("d4").style.display='block';
  document.getElementById("d5").style.display='none';
} else if(document.getElementById("d4").style.display=='block'){
  document.getElementById("d1").style.display='none';
  document.getElementById("d2").style.display='none';
  document.getElementById("d3").style.display='none';
  document.getElementById("d4").style.display='none';
  document.getElementById("d5").style.display='block';
} else if(document.getElementById("d5").style.display=='block'){
  document.getElementById("d1").style.display='block';
  document.getElementById("d2").style.display='none';
  document.getElementById("d3").style.display='none';
  document.getElementById("d4").style.display='none';
  document.getElementById("d5").style.display='none';
  }
}
window.onload=function(){
setInterval("f1()", 3000)
}
</pre>
<p>The above part is the java script. It has to be inserted the head tag of the HTML Page.</p>
<pre class="html">
<div id="d1" style="display:block;"> <img src="Druv.jpg" /></div>
<div id="d2" style="display:none;"> <img src="DSC00177.jpg" /></div>
<div id="d3" style="display:none;"> <img src="family 2.jpg" /></div>
<div id="d4" style="display:none;"> <img src="s2-6x8-2.jpg" /></div>
<div id="d5" style="display:none;"> <img src="Vanda.jpg" /></div>
</pre>
<p>The above code is to be included in the Body of the HTML page.<br />
In the above script we create 5 div tags which contains images. Only one of the div is set to visible and remaining are hidden using the
<pre class="html">style="display:block"</pre>
<p> and
<pre class="html">style="display:none"</pre>
<p>.</p>
<p>In the javascript we call the f1() function for every 3 seconds using</p>
<pre class="js">window.onload=function(){
setInterval("f1()", 3000)
}</pre>
<p>This part of the code loads the function on page load. And in the f1 function we check and swap the images.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sathyendra.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sathyendra.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sathyendra.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sathyendra.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sathyendra.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sathyendra.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sathyendra.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sathyendra.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sathyendra.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sathyendra.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sathyendra.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sathyendra.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sathyendra.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sathyendra.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=138&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sathyendra.wordpress.com/2009/01/13/simple-image-swaping-or-slide-show-using-java-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8e2d585402445ea9e3dd7b48edd8546?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sathyendra</media:title>
		</media:content>

		<media:content url="Druv.jpg" medium="image" />

		<media:content url="DSC00177.jpg" medium="image" />

		<media:content url="family 2.jpg" medium="image" />

		<media:content url="s2-6x8-2.jpg" medium="image" />

		<media:content url="Vanda.jpg" medium="image" />

		<media:content url="Druv.jpg" medium="image" />

		<media:content url="DSC00177.jpg" medium="image" />

		<media:content url="family 2.jpg" medium="image" />

		<media:content url="s2-6x8-2.jpg" medium="image" />

		<media:content url="Vanda.jpg" medium="image" />
	</item>
		<item>
		<title>Apple Iphone In and Outs.</title>
		<link>http://sathyendra.wordpress.com/2008/12/30/apple-iphone-in-and-outs/</link>
		<comments>http://sathyendra.wordpress.com/2008/12/30/apple-iphone-in-and-outs/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 20:08:36 +0000</pubDate>
		<dc:creator>sathyendra</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sathyendra.wordpress.com/2008/12/30/apple-iphone-in-and-outs/</guid>
		<description><![CDATA[Apple Iphone In and Outs. Posted using ShareThis<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=6&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.inetminds.com/apple-iphone-in-and-outs-117/">Apple Iphone In and Outs.</a></p>
<p>Posted using <a href="http://sharethis.com">ShareThis</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sathyendra.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sathyendra.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sathyendra.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sathyendra.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sathyendra.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sathyendra.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sathyendra.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sathyendra.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sathyendra.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sathyendra.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sathyendra.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sathyendra.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sathyendra.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sathyendra.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=6&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sathyendra.wordpress.com/2008/12/30/apple-iphone-in-and-outs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8e2d585402445ea9e3dd7b48edd8546?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sathyendra</media:title>
		</media:content>
	</item>
		<item>
		<title>Some PHP Resource Websites</title>
		<link>http://sathyendra.wordpress.com/2008/12/30/some-php-resource-websites/</link>
		<comments>http://sathyendra.wordpress.com/2008/12/30/some-php-resource-websites/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 20:07:51 +0000</pubDate>
		<dc:creator>sathyendra</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sathyendra.wordpress.com/2008/12/30/some-php-resource-websites/</guid>
		<description><![CDATA[Some PHP Resource Websites Posted using ShareThis<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=5&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.inetminds.com/some-php-resource-websites-108/">Some PHP Resource Websites</a></p>
<p>Posted using <a href="http://sharethis.com">ShareThis</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sathyendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sathyendra.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sathyendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sathyendra.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sathyendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sathyendra.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sathyendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sathyendra.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sathyendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sathyendra.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sathyendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sathyendra.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sathyendra.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sathyendra.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=5&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sathyendra.wordpress.com/2008/12/30/some-php-resource-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8e2d585402445ea9e3dd7b48edd8546?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sathyendra</media:title>
		</media:content>
	</item>
		<item>
		<title>Parsing XML Feeds in PHP with simplexml</title>
		<link>http://sathyendra.wordpress.com/2008/12/30/parsing-xml-feeds-in-php-with-simplexml/</link>
		<comments>http://sathyendra.wordpress.com/2008/12/30/parsing-xml-feeds-in-php-with-simplexml/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 20:02:27 +0000</pubDate>
		<dc:creator>sathyendra</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sathyendra.wordpress.com/2008/12/30/parsing-xml-feeds-in-php-with-simplexml/</guid>
		<description><![CDATA[Parsing XML Feeds in PHP with simplexml Posted using ShareThis<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=3&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.inetminds.com/parsing-xml-feeds-in-php-with-simplexml-111/">Parsing XML Feeds in PHP with simplexml</a></p>
<p>Posted using <a href="http://sharethis.com">ShareThis</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sathyendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sathyendra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sathyendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sathyendra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sathyendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sathyendra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sathyendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sathyendra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sathyendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sathyendra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sathyendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sathyendra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sathyendra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sathyendra.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=3&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sathyendra.wordpress.com/2008/12/30/parsing-xml-feeds-in-php-with-simplexml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8e2d585402445ea9e3dd7b48edd8546?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sathyendra</media:title>
		</media:content>
	</item>
		<item>
		<title>Parsing XML Feeds in PHP with simplexml</title>
		<link>http://sathyendra.wordpress.com/2008/12/30/parsing-xml-feeds-in-php-with-simplexml-2/</link>
		<comments>http://sathyendra.wordpress.com/2008/12/30/parsing-xml-feeds-in-php-with-simplexml-2/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 18:56:52 +0000</pubDate>
		<dc:creator>sathyendra</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Parsing xml in php]]></category>
		<category><![CDATA[simplexml example]]></category>
		<category><![CDATA[simplexml explained]]></category>
		<category><![CDATA[SimpleXML tutor]]></category>
		<category><![CDATA[xml parsing  in php]]></category>

		<guid isPermaLink="false">http://www.inetminds.com/?p=111</guid>
		<description><![CDATA[Parsing XML feeds is always something I&#8217;ve wanted to to do with PHP. But I&#8217;ve only bothered to learn how to do it. Now, there are different ways to do this, many of which uses different packages/plugins which need to be installed on the server. I am going to use simplexml, since it&#8217;s built into [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=111&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Parsing XML feeds is always something I&#8217;ve wanted to to do with PHP. But I&#8217;ve only bothered to learn how to do it.  Now, there are  different ways to do this, many of which  uses different packages/plugins which need to be installed on the server. I am going to use <em>simplexml</em>, since it&#8217;s built into the PHP core. I&#8217;ve created a really simple XML file, which I am going to use for this.</p>
<pre class="xml">

                   OMG a Third Post!
                   Satya
                   24/11/2009
                   19:21
                    we have 3 posts in this silly little XML example file! 

                   This is a Second Post
                   Satya
                   23/11/2009
                   12:39
                    So, this is the second post! 

                   First Post
                   Satya
                   22/11/2009
                   10:18
                    This is the first post, in this simple little XML example. 
</pre>
<p>You can see, there are 3 <strong>post</strong> tags under the global <strong>recentposts</strong> tag. Each of them contains tags which contain information on the title, author, date, time and content of the post. A  simple structure. We begin writing the PHP to parse the information in this XML file and display it in regular HTML.</p>
<pre class="php">
// URL of the XML feed.

$feed = 'example.xml';

// How many items do we want to display?

$display = 3;

// Check our XML file exists

if(!file_exists($feed)) {
  die('The XML file could not be found!');
}
</pre>
<p>We need to tell the script where the XML is located. If it&#8217;s in the same directory as our script, a simple filename will do. If it&#8217;s hosted externally, the full URL will be needed (parsing external XML files will not work if <em>allow_url_fopen</em> is not enabled on your server).</p>
<p>Secondly,  the maximum number of items we want to display from our XML file? In this example, I&#8217;ve gone for 3, which is all my XML file contains.</p>
<p>Now, we should check to see if the XML file actually exists, and if not, stop the scripts.</p>
<pre class="php">
// First, open the XML file.

$xml = simplexml_load_file($feed);

// Set the counter for counting how many items we've displayed.

$counter = 0;
</pre>
<p>We need to  use the <em>simplexml_load_file</em> function, and place it into a variable, in this example <strong>$xml</strong> and we initialise a new variable and set it to 0.</p>
<pre class="php">
// Start the loop to display each item.

foreach($xml-&gt;post as $post) {

  echo '
<h1>' . $post-&gt;title . '</h1>

  <em>Written by ' . $post-&gt;author . ' on ' . $post-&gt;date . ' at ' . $post-&gt;time . '</em>

 ' . $post-&gt;content . ' 

';

  // Increase the counter by one.

  $counter++;

  // Check to display all the items we want to.

  if($counter == $display) {

    // Yes. End the loop.

    break;

  }

  // No. Continue.

}
 foreach($xml-&gt;post as $post)
</pre>
<p>This initialises a <em>foreach</em> loop. Everything inside this loop while be executed for every <em>post</em> item in the XML file. Which this line is doing, is taking all the information found under <em>post</em> in the feed, and assigning it to the <strong>$post</strong> variable. This information will then be able to accessed using <strong>$post-&gt;title</strong>, <strong>$post-&gt;author</strong>, etc. If there is more than one item in the feed (which in this case, there is: 3 <em>post</em>s), the information will be put into arrays. for example, displaying only the title of the most recent post would be done using <strong>$post-&gt;title[0]</strong>. However, in this example, we neednot concern ourselves with arrays, since the <em>foreach</em> loop will automatically display it all for us.</p>
<pre class="php">
echo '
<h1>' . $post-&gt;title . '</h1>

  <em>Written by ' . $post-&gt;author . ' on ' . $post-&gt;date . ' at ' . $post-&gt;time . '</em>

 ' . $post-&gt;content . ' 

';
</pre>
<p>We are simply displaying the title of the post in a <em>h1</em> tag, displaying the author, date and time of the post as italics, and then displaying the main content of the post.</p>
<pre class="php">
// Increase the counter by one.

  $counter++;</pre>
<p>After every iteration of the loop, the contents of the <strong>$counter</strong> variable we initialised earlier will be incremented by one. This is so the script know how many posts we have so far displayed in total.</p>
<pre class="php">
// Check to display all the items we want to.

  if($counter == $display) {

    // Yes. End the loop.

    break;

  }

  // No. Continue.

}</pre>
<p>The script will check if <strong>$counter</strong> is equal to <strong>$display</strong> (have we displayed the maximum amount of posts we want to display?), and if this is indeed the case, break out of the <em>foreach</em> loop, thus ending the script. If not, nothing happens, and the loop begins once again.</p>
<p>So, putting all that together, this final script will look something like this:</p>
<pre class="php">
post as $post) {

  echo '
<h1>' . $post-&gt;title . '</h1>

  <em>Written by ' . $post-&gt;author . ' on ' . $post-&gt;date . ' at ' . $post-&gt;time . '</em>

 ' . $post-&gt;content . ' 

';

  // Increase the counter by one.

  $counter++;

  // Check to display all the items we want to.

  if($counter == $display) {

    // Yes. End the loop.

    break;

  }

  // No. Continue.

}

?&gt;</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sathyendra.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sathyendra.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sathyendra.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sathyendra.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sathyendra.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sathyendra.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sathyendra.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sathyendra.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sathyendra.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sathyendra.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sathyendra.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sathyendra.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sathyendra.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sathyendra.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=111&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sathyendra.wordpress.com/2008/12/30/parsing-xml-feeds-in-php-with-simplexml-2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8e2d585402445ea9e3dd7b48edd8546?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sathyendra</media:title>
		</media:content>
	</item>
		<item>
		<title>Some PHP Resource Websites</title>
		<link>http://sathyendra.wordpress.com/2008/12/30/some-php-resource-websites-2/</link>
		<comments>http://sathyendra.wordpress.com/2008/12/30/some-php-resource-websites-2/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 18:00:05 +0000</pubDate>
		<dc:creator>sathyendra</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Resources list.]]></category>
		<category><![CDATA[PHP Resources Websites]]></category>
		<category><![CDATA[PHP tutors list]]></category>
		<category><![CDATA[PHP tutors Websites]]></category>

		<guid isPermaLink="false">http://www.inetminds.com/?p=108</guid>
		<description><![CDATA[PHP is a very vast language. It&#8217;s hard master it.You may know how to crop an image using GD and process web requests with XML-RPC. You may know one of them, but not the both. There are many of resources there that help you learn the basics of PHP Processing forms, security, database interactions and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=108&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PHP is a very vast language. It&#8217;s hard  master it.You may know how to crop an image using GD and process web requests with XML-RPC. You may know one of them, but not the both. There are many of resources there that help you learn the basics of PHP   Processing forms, security, database interactions and array manipulation. I&#8217;ve compiled a list of websites that will help you learn the  basics&#8217; of PHP as well as taking them a step further. </p>
<p><strong><span style="text-decoration:none;">w3school.com PHP Tutorial&#8217;s </span></strong><br />
W3Schools.com has a list of various PHP tutorials for the bothe the PHP Basics and PHP Advanced. This Tutorials are very easey and simple to understand with simple examples and referances.</p>
<p><strong><span style="text-decoration:none;">tizag.com PHP Tutorial&#8217;s </span></strong><br />
Tizag.com is another site that provides the tutorials for biggnears. The examples and tutors in the site are simple and easy to understand.</p>
<p><strong><span style="text-decoration:none;">KillerPHP.com&#8217;s Video Tutorials</span></strong><br />
I used these when I was initially learning PHP and are still a great resource today. These screen casts are typically 10 minutes long and cover the absolute basics   getting your development environment up and running to variables and includes.</p>
<ul type="disc">
<li class="MsoNormal">Local server setup</li>
<li class="MsoNormal">Variables</li>
<li class="MsoNormal">Arrays</li>
<li class="MsoNormal">Includes</li>
<li class="MsoNormal">Loops</li>
<li class="MsoNormal">Form Processing</li>
<li class="MsoNormal">Functions</li>
<li class="MsoNormal">Sessions</li>
<li class="MsoNormal">OOP</li>
</ul>
<p><strong><span style="text-decoration:none;">Pixel2Life&#8217;s Tutorial Index</span></strong><br />
Pixel2Life is a tutorial index where loggers can submit their tutorials and articles. The result of hundreds of people doing this is a very large library of  specialized&#8217; links. For example, at the time of writing this, the front page contains tutorials about Twitter, Code Igniter, Graveyards and Converting Excel to CSV with PHP. There are also numerous tutorials and articles on PHP frameworks (Code Igniter, Cake PHP etc) that aren&#8217;t on the framework&#8217;s web site. Be aware that there are excellent tutorials back 6 or 7 pages, so have a dig around for them. </p>
<p><strong><span style="text-decoration:none;">NetTut&#8217;s PHP Tutorials</span></strong><br />
Nettuts is well known for it&#8217;s high quality tutorials. They have recently done a 3 part series on making your own PHP framework   something you don&#8217;t see on an everyday blog. Although there aren&#8217;t many PHP tutorials now, new authors are writing more tutorials on them. Often the tutorials are not only PHP, a recent one showed how to make a twitter clone in PHP which used mootools for the AJAX and effects. Lately the editor, Jeff Way, has been doing some screen casts.</p>
<p><strong><span style="text-decoration:none;">PHP.net Quickref</span></strong><br />
Sorry, I had to put it in. If you don&#8217;t know what a certain function does, do a quick search on the quickref page and find it in seconds. The documentation provided by PHP isn&#8217;t the only good part, read peoples comments on real application usage of function. For example the sleep function (http://www.php.net/manual/en/function.sleep.php) , it not only shows usage of it, but mini hacks people have used to get it working better, or an alternative way to do it.</p>
<p><strong><span style="text-decoration:none;">PHP Builder</span></strong><br />
PHP Builder is a portal for everything PHP. It has PHP job lisitings, original articles, a snippet library, forum and a mailing list. Some of the articles on there are really interesting, using PHP as a shell language (http://www.phpbuilder.com/columns/darrell20000319.php3?page=1) not only covers the basic  hello world&#8217; tutorial, but using arguments and reading input from the console. The forum (http://phpbuilder.com/board/) is incredibly useful. There are fully certified Zend Engineers that help you think up</p>
<p><strong><span style="text-decoration:none;">Learnphp.org</span></strong><br />
Lean PHP<br />
is a portal for everything PHP. It has PHP job lisitings, original articles, a snippet library, forum and a mailing list. Some of the articles on there are really interesting, using PHP as a shell language (http://www.phpbuilder.com/columns/darrell20000319.php3?page=1) not only covers the basic  hello world&#8217; tutorial, but using arguments and reading input from the console. The forum (http://phpbuilder.com/board/) is incredibly useful. There are fully certified Zend Engineers that help you think up.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sathyendra.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sathyendra.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sathyendra.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sathyendra.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sathyendra.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sathyendra.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sathyendra.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sathyendra.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sathyendra.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sathyendra.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sathyendra.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sathyendra.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sathyendra.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sathyendra.wordpress.com/108/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=108&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sathyendra.wordpress.com/2008/12/30/some-php-resource-websites-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8e2d585402445ea9e3dd7b48edd8546?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sathyendra</media:title>
		</media:content>
	</item>
		<item>
		<title>Apple Iphone In and Outs.</title>
		<link>http://sathyendra.wordpress.com/2008/12/01/apple-iphone-in-and-outs-2/</link>
		<comments>http://sathyendra.wordpress.com/2008/12/01/apple-iphone-in-and-outs-2/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 10:34:42 +0000</pubDate>
		<dc:creator>sathyendra</dc:creator>
				<category><![CDATA[Product Reviews]]></category>

		<guid isPermaLink="false">http://www.inetminds.com/?p=117</guid>
		<description><![CDATA[Hi Guys, As i am using Apple Iphone from last few months. I just want to share my own reviews for Apple Iphone with all my friends who wants to know more about Iphone before buying. First things in iphone which is noticed by everyone its nice sleek looks. Easy to use and navigate. Lots [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=117&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi Guys, As i am using Apple Iphone from last few months. I just want to share my own reviews for Apple Iphone with all my friends who wants to know more about Iphone before buying. First things in iphone which is noticed by everyone its nice sleek looks. Easy to use and navigate. Lots of space for your favourite movies and songs. In iphone you can access your mails via using safari, an apple browser. we can esily install Games, utilities, applications and softwares viw Itunes. You Tube is there we can easily watch the videos in you tube. I am pretty happy with this phone. But there is few draw backs is there Like battery back up is really poor. no Video coverage. there is no option to forwad the messages, you can forward the message but for this you have to buy the application which is avaialable on Itunes application software.</p>
<p>But i must say its an nice phone and love using it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sathyendra.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sathyendra.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sathyendra.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sathyendra.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sathyendra.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sathyendra.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sathyendra.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sathyendra.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sathyendra.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sathyendra.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sathyendra.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sathyendra.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sathyendra.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sathyendra.wordpress.com/117/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=117&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sathyendra.wordpress.com/2008/12/01/apple-iphone-in-and-outs-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8e2d585402445ea9e3dd7b48edd8546?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sathyendra</media:title>
		</media:content>
	</item>
		<item>
		<title>The file structure of the Zend Framework QuickStart Tutorial</title>
		<link>http://sathyendra.wordpress.com/2008/11/23/the-file-structure-of-the-zend-framework-quickstart-tutorial/</link>
		<comments>http://sathyendra.wordpress.com/2008/11/23/the-file-structure-of-the-zend-framework-quickstart-tutorial/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 10:35:51 +0000</pubDate>
		<dc:creator>sathyendra</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[Zend PHP]]></category>

		<guid isPermaLink="false">http://www.inetminds.com/?p=82</guid>
		<description><![CDATA[&#160; I started working&#160; through the tutorial for the PHP Zend Framework.&#160; After few pages they&#160; neglected to mention where the&#160; piece of code is supposed to be. Maybe I learnt a lot more, but it did not make for a very &#8216;quick&#8217; start to work out things go from the error messages. Here&#8217;s the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=82&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>I started working&nbsp; through the <a href="http://framework.zend.com/docs/quickstart">tutorial</a> for the PHP <a href="http://framework.zend.com/">Zend Framework</a>.&nbsp; After few pages they&nbsp; neglected to mention where the&nbsp; piece of code is supposed to be. Maybe I learnt a lot more, but it did not make for a very &lsquo;quick&rsquo; start to work out things go from the error messages.</p>
<p>Here&rsquo;s the structure of the <a href="http://framework.zend.com/docs/quickstart">QuickStart Tutorial</a>&hellip;</p>
<pre><code></code><!--[if !mso]&gt;-->

v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}

<!--[if gte mso 9]&gt;-->

  Normal
  0

  false
  false
  false

  MicrosoftInternetExplorer4

<!--[if gte mso 9]&gt;-->

<!--[if gte mso 10]&gt;-->

 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}

<span style="font-size:12pt;font-family:&quot;"><!--[if gte vml 1]&gt;-->

<!--[if !vml]--><!--[endif]--></span></pre>
<p><a href="http://www.inetminds.com/the-file-structure-of-the-zend-framework-quickstart-tutorial-82/"><img hspace="0" height="508" width="331" vspace="0" border="0" align="middle" alt="The file structure of the Zend Framework QuickStart Tutorial" src="http://www.inetminds.com/wp-content/uploads/image/send.gif" /></a>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sathyendra.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sathyendra.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sathyendra.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sathyendra.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sathyendra.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sathyendra.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sathyendra.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sathyendra.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sathyendra.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sathyendra.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sathyendra.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sathyendra.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sathyendra.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sathyendra.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=82&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sathyendra.wordpress.com/2008/11/23/the-file-structure-of-the-zend-framework-quickstart-tutorial/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8e2d585402445ea9e3dd7b48edd8546?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sathyendra</media:title>
		</media:content>

		<media:content url="http://www.inetminds.com/wp-content/uploads/image/send.gif" medium="image">
			<media:title type="html">The file structure of the Zend Framework QuickStart Tutorial</media:title>
		</media:content>
	</item>
		<item>
		<title>class in php</title>
		<link>http://sathyendra.wordpress.com/2008/11/18/class-in-php/</link>
		<comments>http://sathyendra.wordpress.com/2008/11/18/class-in-php/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 14:32:03 +0000</pubDate>
		<dc:creator>sathyendra</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[funcions in php]]></category>
		<category><![CDATA[how to declare a class in php]]></category>
		<category><![CDATA[how to declare a functions in php]]></category>
		<category><![CDATA[modifiers in php]]></category>

		<guid isPermaLink="false">http://www.inetminds.com/?p=79</guid>
		<description><![CDATA[Class is nothing but binding the data. I’e variables and functions. In class we can have number functions. Class can be declare with a key word class followed by a class name, which can be any name. This name should not be key word in php. Followed by a pair of curly braces . Its [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=79&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]&gt;  Normal 0   false false false        MicrosoftInternetExplorer4  &lt;![endif]--><!--[if gte mso 9]&gt;   &lt;![endif]--><span>Class is nothing but binding the data. I’e variables and functions. In class we can have number functions. Class can be declare with a key word <em>class</em><span> </span>followed by a class name, which can be any name. This name should not be key word in php. Followed by a pair of curly braces  . </span><br />
Its recommended to start class name with a capital letter. And functions with a small letter. Before class declarations we can use modifiers I’e <em>public, abstract.</em> If access modifier is nothing by default it will take <span> </span><em>defaultft </em><span> </span>modifier..</p>
<pre class="php">
public class Demo{

$i=0;

function myfristfunction(){

$i++;

echo $i;

echo "this my first function ";

}

function mysecondfunctin(){

$i++;

echo $i;

echo "mysecond function";

}

}
</pre>
<p>output:<br />
1 this my first function 2 mysecond function</p>
<pre class="php">
class Second{

function mysecondclass(){

echo "this is my second class";
}

}
</pre>
<p>output:</p>
<p>this is my second class</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sathyendra.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sathyendra.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sathyendra.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sathyendra.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sathyendra.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sathyendra.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sathyendra.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sathyendra.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sathyendra.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sathyendra.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sathyendra.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sathyendra.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sathyendra.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sathyendra.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=79&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sathyendra.wordpress.com/2008/11/18/class-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8e2d585402445ea9e3dd7b48edd8546?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sathyendra</media:title>
		</media:content>
	</item>
		<item>
		<title>trim() in php</title>
		<link>http://sathyendra.wordpress.com/2008/11/11/trim-in-php/</link>
		<comments>http://sathyendra.wordpress.com/2008/11/11/trim-in-php/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 15:53:01 +0000</pubDate>
		<dc:creator>sathyendra</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.inetminds.com/?p=74</guid>
		<description><![CDATA[If you use a form on your site then you&#8217;ll know that user input can often have white space before or after the text as the person filling in the form field sometimes accidentally adds spaces. This handy function will remove the whitespace from the beginning or end of the string. after removing the white [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=74&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you use a form on your site then you&#8217;ll know that user input can often have white space before or after the text as the person filling in the form field sometimes accidentally adds spaces. This handy function will remove the whitespace from the beginning or end of the string.</p>
<pre class="php">
</pre>
<p>after removing the white spaces</p>
<p>out put :hai</p>
<pre class="php">
 </pre>
<p>out put:</p>
<p> Hello world</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sathyendra.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sathyendra.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sathyendra.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sathyendra.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sathyendra.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sathyendra.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sathyendra.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sathyendra.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sathyendra.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sathyendra.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sathyendra.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sathyendra.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sathyendra.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sathyendra.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sathyendra.wordpress.com&amp;blog=6000947&amp;post=74&amp;subd=sathyendra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sathyendra.wordpress.com/2008/11/11/trim-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c8e2d585402445ea9e3dd7b48edd8546?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sathyendra</media:title>
		</media:content>
	</item>
	</channel>
</rss>
