<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>SPWD - Modern Tools for Modern Development</title>
	
	<link>http://www.southplattewebdesign.com</link>
	<description>Tips, Tutorials and Tools for modern web development.</description>
	<pubDate>Sat, 15 Nov 2008 06:56:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<geo:lat>38.333601</geo:lat><geo:long>-104.743294</geo:long><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/spwd" type="application/rss+xml" /><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fspwd" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fspwd" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fspwd" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.rojo.com/add-subscription?resource=http%3A%2F%2Ffeeds.feedburner.com%2Fspwd" src="http://blog.rojo.com/RojoWideRed.gif">Subscribe with Rojo</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/spwd" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fspwd" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fspwd" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fspwd" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><item>
		<title>Server Issues</title>
		<link>http://feeds.feedburner.com/~r/spwd/~3/453746428/</link>
		<comments>http://www.southplattewebdesign.com/2008/11/14/server-issues/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 06:56:37 +0000</pubDate>
		<dc:creator>Billy</dc:creator>
		
		<category><![CDATA[Apache]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Servers]]></category>

		<category><![CDATA[httpd]]></category>

		<guid isPermaLink="false">http://www.southplattewebdesign.com/?p=115</guid>
		<description>I have posted a few times in the past in regards to several server issues I have experienced with the server I use to host this site and a few other domains I own.  In that regard, this is an update post.
I am still experiencing issues with the server, and I still have the [...]</description>
			<content:encoded><![CDATA[<p>I have posted a few times in the past in regards to several server issues I have experienced with the server I use to host this site and a few other domains I own.  In that regard, this is an update post.</p>
<p>I am still experiencing issues with the server, and I still have the new server to swap it out with.  I just have not had the means to do so yet.  The issue I keep having is a kernel issue involving swap space.  Just this morning while typing a post, the server started to lockup and started kicking errors.  Luckily I had an SSH session open that allowed me to kill some services, perform a reboot and get things going again.  I am not always that lucky.</p>
<p>As part of that, I will have to add an additional point to the post <a href="http://www.southplattewebdesign.com/2008/11/08/why-i-fail-at-blogging/" >Why I Fail At Blogging</a>.  Another part of the reason I don&#8217;t promote as much as I could, nor post is server reliability.  You don&#8217;t want to start getting tons of traffic, or even a moderate level of traffic if your hosting server is not reliable.  Nothing irks me more that trying to get to a site and having it load slow, or worse, not at all.  </p>
<p>After looking into this issue more, I have found (surprisingly) if I use Internet Explorer 7 to post on here, the problem happens less frequently that when I use Firefox.  Not sure exactly why that is yet, but for some reason when I am using FF, when I am in the admin section typing posts etc. I can see in my SSH session several HTTPD processes, that then start crashing after they keep being spawned and sucking all the available memory and swap space.  If I catch it before the swap space is used, I can kill them, restart the service and recover.  If not, the server has not option but to be phsyically rebooted.</p>
<p>I am not sure why FF would send so many more HTTP requests than IE would, but that would seem to to be the case at this point in time.  Has anyone else experienced this type of issued with WordPress?  Leave a comment if you have!</p>
<p><a href="http://twitter.com/home/?status=www.gn8e7.th8.us+Server+Issues"class="tt-small"  title="Post to Twitter (www.gn8e7.th8.us)" onclick="javascript:urchinTracker ('/outbound/article/twitter.com');"><img class="nothumb" src="http://www.southplattewebdesign.com/wp-content/plugins/tweet-this/tweet-this-small.png" alt="[Post to Twitter]" /> Tweet This</a></p>
<p><a href="http://feeds.feedburner.com/~a/spwd?a=RWq0Pg"><img src="http://feeds.feedburner.com/~a/spwd?i=RWq0Pg" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/spwd?a=sl53n"><img src="http://feeds.feedburner.com/~f/spwd?i=sl53n" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=Zmwun"><img src="http://feeds.feedburner.com/~f/spwd?i=Zmwun" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=ymjnn"><img src="http://feeds.feedburner.com/~f/spwd?i=ymjnn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=Fvixn"><img src="http://feeds.feedburner.com/~f/spwd?i=Fvixn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=9IHEN"><img src="http://feeds.feedburner.com/~f/spwd?i=9IHEN" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/spwd/~4/453746428" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.southplattewebdesign.com/2008/11/14/server-issues/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.southplattewebdesign.com/2008/11/14/server-issues/</feedburner:origLink></item>
		<item>
		<title>Why I Fail At Blogging</title>
		<link>http://feeds.feedburner.com/~r/spwd/~3/447128854/</link>
		<comments>http://www.southplattewebdesign.com/2008/11/08/why-i-fail-at-blogging/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 19:18:51 +0000</pubDate>
		<dc:creator>Billy</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Casual Blogging]]></category>

		<category><![CDATA[commitment]]></category>

		<category><![CDATA[effort]]></category>

		<category><![CDATA[Fail]]></category>

		<category><![CDATA[fear]]></category>

		<category><![CDATA[success]]></category>

		<category><![CDATA[truth]]></category>

		<guid isPermaLink="false">http://www.southplattewebdesign.com/?p=105</guid>
		<description>Image via Wikipedia



We all read about bloggers such as Darren Rowse who are highly successful in earning a good living from blogging.  We sit and think, get an idea, sit some more, think some more&amp;#8230;.  Most people desire success in life, whether it is work, family, recreation or some other area such as [...]</description>
			<content:encoded><![CDATA[<div style="margin: 1em; float: left; display: block;" class="zemanta-img zemanta-action-click">
<div class="mceTemp">
<dl class="wp-caption alignleft" style="">
<dt class="wp-caption-dt"><a href="http://commons.wikipedia.org/wiki/Image:Train_wreck_at_Montparnasse_1895.jpg"mce_ href="http://commons.wikipedia.org/wiki/Image:Train_wreck_at_Montparnasse_1895.jpg" onclick="javascript:urchinTracker ('/outbound/article/commons.wikipedia.org');"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/19/Train_wreck_at_Montparnasse_1895.jpg/202px-Train_wreck_at_Montparnasse_1895.jpg" alt="Train wreck at Montparnasse Station, at Place ..." title="Train wreck at Montparnasse Station, at Place ..." width="202" height="242"></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image via <a href="http://commons.wikipedia.org/wiki/Image:Train_wreck_at_Montparnasse_1895.jpg" onclick="javascript:urchinTracker ('/outbound/article/commons.wikipedia.org');">Wikipedia</a></dd>
</dl>
</div>
</div>
<p>We all read about bloggers such as <a href="http://en.wikipedia.org/wiki/Darren_Rowse" title="Darren Rowse" rel="wikipedia" class="zem_slink" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">Darren Rowse</a> who are highly successful in earning a good living from <a href="http://en.wikipedia.org/wiki/Blog" title="Blog" rel="wikipedia" class="zem_slink" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">blogging</a>.  We sit and think, get an idea, sit some more, think some more&#8230;.  Most people desire success in life, whether it is work, family, recreation or some other area such as blogging.  The truth of the matter is a larger percentage of &#8220;us&#8221; fail to attain that success.  </p>
<p>I am the poster-child for failure in many areas of life - yet I keep waking up, keep plugging away and keep trying, just as so many of us do.  Blogging is just one small failure in my book of life, but I am starting to identify why I fail as a blogger&#8230;.maybe you share some of these traits, maybe you don&#8217;t.  Either way, the path to success is full of potholes, set backs and much effort, and in there will be failures - it&#8217;s how we handle those failures that determines our future success.</p>
<p><strong>Why I Fail At Blogging</strong> - The following list examines what I have identified so far as the reasons I fail at blogging, why after nearly 2 years this blog has less readership, less posts and less reach than blogs that are much newer and what I hope to do about this.</p>
<ul>
<li><strong>1. Commitment</strong><br />
	I completely lack commitment to blogging.  While I want to blog, I just never &#8220;make&#8221; time to blog.  Note I did not say &#8220;find&#8221; time.  I never make time.  Whether it is taking 20 minutes a day, either first thing in the morning, or before I go to sleep at night, I never make the time to write.  Even if I were to write a partial post in that 20 minutes, research a post idea, test a code snippet, it would improve post frequency, which is one of the keys to successful blogging.  No one wants to read a blog that is only updated once every 2-3 months, which has often been the case with this blog.</li>
<li><strong>2. Vision</strong><br />
	What is the vision for a blog.  I have convoluted the vision many times, going to blog about nothing but web development topics.  Then I throw in off-topic posts.  Maybe I will focus on just PHP, or just CSS, or just creating standards compliant xhtml/html/css sites.  Maybe I will focus on MySQL.  I put all these topics in my category list, and yet I don&#8217;t blog about many of them, because I do not have a clearly defined vision of what I am trying to accomplish on this blog.  Maybe if I had a vision, I could figure out the time to devote to number one up there.</li>
<li><strong>3. Cynicism</strong><br />
I read about other&#8217;s success.  I look at it through a soda bottle, distorted and distrusted.  If in fact it is true, it is only they who could accomplish it, not me.  I setup for failure before even trying, being pessimistic, and for some odd reason I enjoy this.  I, in the back of my mind, wish to fail?  What?  Yes, and others are out there that do the same.  Why?  Imagine, if you were someone such as Darren Rowse, who is highly successful.  With that success comes accountability.  He and <a href="http://en.wikipedia.org/wiki/Chris_Garrett" title="Chris Garrett" rel="wikipedia" class="zem_slink" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">Chris Garrett</a> published a book on blogging - which many times indicates that one is a success or expert in what they were published about.  </p>
<p>When viewed in that context, there is accountability that can come along with that.  I myself don&#8217;t want accountability, or the responsibility that what I write is not going to be raked over the coals and shredded and I may have to justify my position, idea, expertise etc.  Do you ever feel that way?  Maybe, maybe not.  But being cynical of the blogosphere can be good, yet in my case, it is one of my own worst enemies as I am my own worst cynic to myself.</li>
<li><strong>4. Lack of Self</strong><br />
We are taught to rely on ourselves more than others&#8230;.at least some of us are.  In that, one of my biggest struggles is feeling, or better yet, knowing I can accomplish something.  Lack of self worth, prior life incidents, too much love, not enough, whatever the cliche you want to attach here is.  The bottom line is, we have to know ourselves, know our strengths and weaknesses and not let the weaknesses rule our lives.  I can look at myself and I say the following: moron, idiot, stupid, ugly&#8230;.a complete lack of self.  Are we conditioned to feel a certain way about ourselves?  Do we do it on our own?  One thing about successful people, they portray success, even amidst failure.  That self composure of taking a beating, and still looking up.  That self composure of being who they are, where they are, how they are is priceless.  Who are you?  Who am I?  I am sheepish, shy, and downright hard on myself - creating a lack of self, which creates a mindset of failure, before I even start a task.  Failure is good, it teaches us lessons, it shows us a weakness that we can strengthen and it can guide us to a better purpose or direction.  But creating failure before effort is a great way to ensure success will never happen.</li>
<li><strong>5. Fear</strong><br />
Fear of what?  I fear success merely for the fact that success brings with it a change, and I fear change even though I have very few constants in life.  What do you fear?  Something different maybe?  The saying goes that the only thing to fear, is fear itself.  Seems an infinite loop to me, at least in my life&#8230;.  Are you afraid of connecting, of putting your foot out there to let it get trampled on?  I am sure the likes of Darren and Chris could tell a hundred stories of getting trampled on, whether by someone who is in a position to trample, or someone who is merely jealous, rude or otherwise a crick in societal norm&#8230;if there is such a thing of societal norm.  Did they take it to heart, quit blogging, quit trying or walk away?  If they had, would they be where they are now?  I let this fear guide my steps, my actions and my words far too often.  What if someone doesn&#8217;t like what I write.  What if someone knows a better way to do that PHP snippet I just posted&#8230;get over it, eh?  Yes, well, we all need to take steps in areas, and this area is just another one of mine.  Maybe I just need a lesson in &#8220;It&#8217;s Okay To Be Wrong&#8221; or something.</li>
</ul>
<p>Well, a short list, but the top 5 reasons I have not put in the effort required to actually build this blog, or any of the several other blogs I have attempted to write on.  The biggest for me is merely setting the time to do it, and stop &#8220;thinking&#8221; about it, stop &#8220;wishing&#8221; about it and to stop &#8220;dreaming&#8221; about it.  Dreams don&#8217;t come true to those who only dream, and never &#8220;do&#8221;.  That is one key in common with nearly ever successful person I have ever met or known, they not only dream, they DO.</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a href="http://reblog.zemanta.com/zemified/ccf6fcf5-adaf-41f5-9d19-2c77d3fd25ed/"class="zemanta-pixie-a"  title="Zemified by Zemanta" onclick="javascript:urchinTracker ('/outbound/article/reblog.zemanta.com');"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=ccf6fcf5-adaf-41f5-9d19-2c77d3fd25ed" alt="Reblog this post [with Zemanta]"></a></div>
<p><a href="http://twitter.com/home/?status=www.itwwe.th8.us+Why+I+Fail+At+Blogging"class="tt-small"  title="Post to Twitter (www.itwwe.th8.us)" onclick="javascript:urchinTracker ('/outbound/article/twitter.com');"><img class="nothumb" src="http://www.southplattewebdesign.com/wp-content/plugins/tweet-this/tweet-this-small.png" alt="[Post to Twitter]" /> Tweet This</a></p>
<p><a href="http://feeds.feedburner.com/~a/spwd?a=nhyd5C"><img src="http://feeds.feedburner.com/~a/spwd?i=nhyd5C" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/spwd?a=lV3Xn"><img src="http://feeds.feedburner.com/~f/spwd?i=lV3Xn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=UqVZn"><img src="http://feeds.feedburner.com/~f/spwd?i=UqVZn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=XO0Bn"><img src="http://feeds.feedburner.com/~f/spwd?i=XO0Bn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=A8sXn"><img src="http://feeds.feedburner.com/~f/spwd?i=A8sXn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=0VAoN"><img src="http://feeds.feedburner.com/~f/spwd?i=0VAoN" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/spwd/~4/447128854" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.southplattewebdesign.com/2008/11/08/why-i-fail-at-blogging/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.southplattewebdesign.com/2008/11/08/why-i-fail-at-blogging/</feedburner:origLink></item>
		<item>
		<title>Twitip.com Launched by Problogger</title>
		<link>http://feeds.feedburner.com/~r/spwd/~3/441797464/</link>
		<comments>http://www.southplattewebdesign.com/2008/11/04/twitip-launched-by-problogger/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 07:12:23 +0000</pubDate>
		<dc:creator>Billy</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Casual Blogging]]></category>

		<category><![CDATA[Internet Tools]]></category>

		<category><![CDATA[Social Media]]></category>

		<category><![CDATA[twitip]]></category>

		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.southplattewebdesign.com/?p=101</guid>
		<description>For those of you who have not heard, Problogger.net&amp;#8217;s Darren Rowse has launched a new blog all about Twitter.  www.twitip.com is sure to be as good of a resource for Twitter that Problogger.net is for blogging and bloggers.  Innovation, niche and timing are key, and I think Darren hit this one at the [...]</description>
			<content:encoded><![CDATA[<p>For those of you who have not heard, Problogger.net&#8217;s Darren Rowse has launched a new blog all about Twitter.  <a href="http://www.twitip.com/" onclick="javascript:urchinTracker ('/outbound/article/www.twitip.com');">www.twitip.com</a> is sure to be as good of a resource for Twitter that <a href="http://www.problogger.net" onclick="javascript:urchinTracker ('/outbound/article/www.problogger.net');">Problogger.net</a> is for blogging and bloggers.  Innovation, niche and timing are key, and I think Darren hit this one at the right time - I for one use Twitter, but I don&#8217;t think I am maximizing what I can get out of it or add to it, so hopefully keeping up with him over there will prove fruitful.</p>
<p><a href="http://twitter.com/home/?status=www.5y28p.th8.us+Twitip.com+Launched+by+Problogger"class="tt-small"  title="Post to Twitter (www.5y28p.th8.us)" onclick="javascript:urchinTracker ('/outbound/article/twitter.com');"><img class="nothumb" src="http://www.southplattewebdesign.com/wp-content/plugins/tweet-this/tweet-this-small.png" alt="[Post to Twitter]" /> Tweet This</a></p>
<p><a href="http://feeds.feedburner.com/~a/spwd?a=70mpd3"><img src="http://feeds.feedburner.com/~a/spwd?i=70mpd3" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/spwd?a=CkY3n"><img src="http://feeds.feedburner.com/~f/spwd?i=CkY3n" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=RtAun"><img src="http://feeds.feedburner.com/~f/spwd?i=RtAun" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=RlRhn"><img src="http://feeds.feedburner.com/~f/spwd?i=RlRhn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=Senvn"><img src="http://feeds.feedburner.com/~f/spwd?i=Senvn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=KRJhN"><img src="http://feeds.feedburner.com/~f/spwd?i=KRJhN" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/spwd/~4/441797464" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.southplattewebdesign.com/2008/11/04/twitip-launched-by-problogger/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.southplattewebdesign.com/2008/11/04/twitip-launched-by-problogger/</feedburner:origLink></item>
		<item>
		<title>PHP File Listing Script</title>
		<link>http://feeds.feedburner.com/~r/spwd/~3/434430307/</link>
		<comments>http://www.southplattewebdesign.com/2008/10/28/php-file-listing-script/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 07:35:46 +0000</pubDate>
		<dc:creator>Billy</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Design]]></category>

		<category><![CDATA[directory]]></category>

		<category><![CDATA[file reader]]></category>

		<category><![CDATA[file system]]></category>

		<category><![CDATA[php file listing script]]></category>

		<category><![CDATA[php file reader]]></category>

		<guid isPermaLink="false">http://www.southplattewebdesign.com/?p=98</guid>
		<description>I had a need for a script to read directories for users, listing only files and not sub-directories, so this is the script that ended up being what worked.  One of the features was to exclude a few system files on the Linux file system that are present in directories and to list the [...]</description>
			<content:encoded><![CDATA[<p>I had a need for a script to read directories for users, listing only files and not sub-directories, so this is the script that ended up being what worked.  One of the features was to exclude a few system files on the Linux file system that are present in directories and to list the last modified time so that the users uploading and downloading files could see the different timestamps to differentiate more recent files.</p>
<p>This script handled the uploading of files, after a user was logged into the system.  Proper validation and security measures need to be taken before using a script such as this.  This may include user logins, ip-restrictions or other measures.</p>
<p>The code explanation follows the code below:</p>
<p><a class="quickcode" title="Code" href="javascript:toggleLayer('quickcode981');">Quick Code</a></p>
<div id="quickcode981" class="quickcode"><code><br />
&lt;?php<br />
&nbsp;<br />
//define the path<br />
//using the &quot;.&quot; sets it to the current path<br />
//any relative or absolute path that the web<br />
//server use can read with will work<br />
&nbsp;<br />
$path = &quot;.&quot;; <br />
&nbsp;<br />
//using the opendir function<br />
$dir_handle = @opendir($path) or die(&quot;Unable to open files.&quot;);<br />
&nbsp;<br />
echo &quot;&lt;h3&gt;List of items.&lt;/h3&gt;&lt;p&gt;&quot;;<br />
&nbsp;<br />
//running the while loop<br />
&nbsp;<br />
echo &quot;&lt;ul&gt;&quot;;<br />
while ($file = readdir($dir_handle)) <br />
{<br />
//remove . and .. from the list<br />
&nbsp;&nbsp; if($file!=&quot;.&quot; &amp;&amp; $file!=&quot;..&quot; &amp;&amp; $file!=&quot;.htaccess&quot;)<br />
&nbsp;&nbsp; {&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $modified = date(&quot;F d Y H:i:s&quot;, filectime($path.&quot;/&quot;.$file));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;&lt;li&gt;&lt;a href=&#039;$path/$file&#039;&gt;$file&lt;/a&gt;&amp;nbsp;&amp;nbsp;Last Modified: $modified&lt;/li&gt;&quot;;<br />
&nbsp;&nbsp;}<br />
&nbsp;<br />
}<br />
echo &quot;&lt;/ul&gt;&quot;;<br />
//closing the directory<br />
closedir($dir_handle);<br />
echo &quot;&lt;/p&gt;&quot;<br />
?&gt; <br />
&lt;/div&gt;<br />
</code></div>
<p>The script first sets up the directory path that we want to open, in this case I wanted to open the current path, so I used a period to signify the current working directory.  Next, we open the directory using the opendir command passing in the $path variable.  We have to loop through the entire directory to get all the files.  **Note this script does not take in to account sub-directories.**</p>
<p>At this point, the script tests for the directories . and .. and also to not list the .htaccess file if it is present.  Within the file check, we get the last modified date of the file, this is done by doing a date format on the filectime function, which accepts the path/filename combination.  The script then simply adds each file to an unordered list, and makes each file name (represented by the $file variable) a link so that they can be clicked on to be viewed or downloaded.</p>
<p>The last important line of code closes the directory handle resource by calling the closedir function.</p>
<p>While simple, this script accomplished reading a directory of files and making a linked list of them.  As I mentioned I had this was only presented to users who had successfully logged into the system, presenting them with a list of files they could easily download.  It was created as a direct replace for an FTP system that was not working well for users - the entire package was a login control, the file listing control (presented here), a way for the user to upload files back and the automatic deletion of files that were older than a set time frame.</p>
<p>I will post about the other parts of the system in the future, and in the end, wrap it up with a complete user managed file transfer system.</p>
<p><a href="http://twitter.com/home/?status=www.xpw4x.th8.us+PHP+File+Listing+Script"class="tt-small"  title="Post to Twitter (www.xpw4x.th8.us)" onclick="javascript:urchinTracker ('/outbound/article/twitter.com');"><img class="nothumb" src="http://www.southplattewebdesign.com/wp-content/plugins/tweet-this/tweet-this-small.png" alt="[Post to Twitter]" /> Tweet This</a></p>
<p><a href="http://feeds.feedburner.com/~a/spwd?a=IOkNUP"><img src="http://feeds.feedburner.com/~a/spwd?i=IOkNUP" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/spwd?a=m2Wrm"><img src="http://feeds.feedburner.com/~f/spwd?i=m2Wrm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=IdIgm"><img src="http://feeds.feedburner.com/~f/spwd?i=IdIgm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=ezg5m"><img src="http://feeds.feedburner.com/~f/spwd?i=ezg5m" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=4qz6m"><img src="http://feeds.feedburner.com/~f/spwd?i=4qz6m" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=WyeSM"><img src="http://feeds.feedburner.com/~f/spwd?i=WyeSM" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/spwd/~4/434430307" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.southplattewebdesign.com/2008/10/28/php-file-listing-script/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.southplattewebdesign.com/2008/10/28/php-file-listing-script/</feedburner:origLink></item>
		<item>
		<title>PHP &amp; ImageMagick Image Resize Script</title>
		<link>http://feeds.feedburner.com/~r/spwd/~3/429419073/</link>
		<comments>http://www.southplattewebdesign.com/2008/10/23/php-imagemagick-image-resize-script/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 07:15:15 +0000</pubDate>
		<dc:creator>Billy</dc:creator>
		
		<category><![CDATA[Graphic Design]]></category>

		<category><![CDATA[Internet Tools]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Design]]></category>

		<category><![CDATA[image]]></category>

		<category><![CDATA[imagemagick]]></category>

		<category><![CDATA[php 5]]></category>

		<category><![CDATA[thumbnails]]></category>

		<guid isPermaLink="false">http://www.southplattewebdesign.com/?p=92</guid>
		<description>This simple script takes a source image, and up to two parameters to re-size the image using ImageMagick.  This allows you to use a large source image that is suitable for a zoomed in view, and dynamically re-size it using the simple script which will make it fit the x,y constraints necessary for a [...]</description>
			<content:encoded><![CDATA[<p>This simple script takes a source image, and up to two parameters to re-size the image using ImageMagick.  This allows you to use a large source image that is suitable for a zoomed in view, and dynamically re-size it using the simple script which will make it fit the x,y constraints necessary for a site, and reduce the file size.</p>
<p>In testing the script, a sample PNG image with transparency was originally 500&#215;500 pixels and 202.76kb in size.  Using the script to set the x,y to 200&#215;200 the file size was reduced to 44.73kb.  The script could be easily extended to perform other ImageMagick functions, and to reduce the end result file size even more.</p>
<p><a class="quickcode" title="Code" href="javascript:toggleLayer('quickcode921');">Quick Code</a></p>
<div id="quickcode921" class="quickcode"><code><br />
&lt;?php<br />
if(!extension_loaded(&#039;imagick&#039;))<br />
{<br />
&nbsp;&nbsp;dl(&#039;imagick.so&#039;);<br />
}<br />
$img = strip_tags($_GET[&#039;imagename&#039;]);<br />
if(isset($_GET[&#039;size&#039;]))<br />
{<br />
&nbsp;&nbsp;$size = strip_tags($_GET[&#039;size&#039;]);<br />
}<br />
else<br />
{<br />
&nbsp;&nbsp;$size = 0;<br />
}<br />
if(isset($_GET[&#039;vsize&#039;]))<br />
{<br />
&nbsp;&nbsp;$vsize = strip_tags($_GET[&#039;vsize&#039;]);<br />
}<br />
else<br />
{<br />
&nbsp;&nbsp;$vsize = 0;<br />
}<br />
&nbsp;<br />
$image = new Imagick($img);<br />
$image-&gt;thumbnailImage($size, $vsize);<br />
header(&quot;Content-type: image/png&quot;);<br />
print $image;<br />
?&gt;<br />
&nbsp;<br />
</code></div>
<p>Quick synopsis of the code:  It first checks to make sure the imagick PHP extension is loaded, and if it is not, it will dynamically load the extension.  It then checks for the URL parameter &#8216;imagename&#8217; and runs a simple strip_tags to clean any extraneous attempts to send in other code with the image name.  The script then does two checks for the size (horizontal) and vsize (vertical).  If either is set, it will strip_tags on them and assign them to a variable for use.</p>
<p>The script then takes the sizes and instantiates a new Imagick object passing in the image name as set from the URL parameter.  It then calls the thumbnailImage function of the Imagick library and passes in the $size and $vsize variables.  We then set the header type to be image/png since we worked only with PNG images in this version, and finally print the results, which are contained in the $image object.</p>
<p>The nice thing about the script, is thumbnail image will take two parameters for the size, and if only one is set, it will auto-constrain the image (eg. 200, 0 it will autoscale the 0 axis).  The other nice thing is we can check the type of image so that we output the same type so we can work with GIF, JPEG, and PNG among others.</p>
<p><a href="http://twitter.com/home/?status=www.f4on9.th8.us+PHP+%26%23038%3B+ImageMagick+Image+Resize+Script"class="tt-small"  title="Post to Twitter (www.f4on9.th8.us)" onclick="javascript:urchinTracker ('/outbound/article/twitter.com');"><img class="nothumb" src="http://www.southplattewebdesign.com/wp-content/plugins/tweet-this/tweet-this-small.png" alt="[Post to Twitter]" /> Tweet This</a></p>
<p><a href="http://feeds.feedburner.com/~a/spwd?a=mNTGRU"><img src="http://feeds.feedburner.com/~a/spwd?i=mNTGRU" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/spwd?a=Z50Tm"><img src="http://feeds.feedburner.com/~f/spwd?i=Z50Tm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=UiQ5m"><img src="http://feeds.feedburner.com/~f/spwd?i=UiQ5m" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=Duihm"><img src="http://feeds.feedburner.com/~f/spwd?i=Duihm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=mAztm"><img src="http://feeds.feedburner.com/~f/spwd?i=mAztm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=cXCQM"><img src="http://feeds.feedburner.com/~f/spwd?i=cXCQM" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/spwd/~4/429419073" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.southplattewebdesign.com/2008/10/23/php-imagemagick-image-resize-script/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.southplattewebdesign.com/2008/10/23/php-imagemagick-image-resize-script/</feedburner:origLink></item>
		<item>
		<title>PHP 5, Twitter &amp; XMLReader</title>
		<link>http://feeds.feedburner.com/~r/spwd/~3/429326109/</link>
		<comments>http://www.southplattewebdesign.com/2008/10/22/php-5-twitter-xmlreader/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 06:32:27 +0000</pubDate>
		<dc:creator>Billy</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Internet Tools]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<category><![CDATA[php 5]]></category>

		<category><![CDATA[RSS]]></category>

		<category><![CDATA[Twitter]]></category>

		<category><![CDATA[XML]]></category>

		<category><![CDATA[XMLReader]]></category>

		<guid isPermaLink="false">http://www.southplattewebdesign.com/?p=89</guid>
		<description>I was interested in using and experimenting with the XMLReader class that is part of PHP 5, and thought why not test it out using my Twitter feed.  Turns out, the feed contained more information than I really wanted, so I had to find a way to extract only what I needed.  To [...]</description>
			<content:encoded><![CDATA[<p>I was interested in using and experimenting with the XMLReader class that is part of PHP 5, and thought why not test it out using my Twitter feed.  Turns out, the feed contained more information than I really wanted, so I had to find a way to extract only what I needed.  To that, I present the following, simple and basic script to extract just the text of the latest update on Twitter.</p>
<p>A basic Twitter feed might appear like mine below:</p>
<p><a class="quickcode" title="Code" href="javascript:toggleLayer('quickcode891');">Quick Code</a></p>
<div id="quickcode891" class="quickcode"><code><br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;rss version=&quot;2.0&quot;&gt;<br />
&nbsp;&nbsp;&lt;channel&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;Twitter / southplatte&lt;/title&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;link&gt;http://twitter.com/southplatte&lt;/link&gt;<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;description&gt;Twitter updates from southplatte / southplatte.&lt;/description&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;language&gt;en-us&lt;/language&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;ttl&gt;40&lt;/ttl&gt;<br />
&nbsp;&nbsp;&lt;item&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;southplatte: working on database stuff with MySQL&lt;/title&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;description&gt;southplatte: working on database stuff with MySQL&lt;/description&gt;<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;pubDate&gt;Tue, 21 Oct 2008 05:35:21 +0000&lt;/pubDate&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;guid&gt;http://twitter.com/southplatte/statuses/968543230&lt;/guid&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;link&gt;http://twitter.com/southplatte/statuses/968543230&lt;/link&gt;<br />
&nbsp;&nbsp;&lt;/item&gt;<br />
&nbsp;&nbsp;&lt;/channel&gt;<br />
&lt;/rss&gt;<br />
</code></div>
<p>As you can see we get a channel name with related information, and then the items, or Tweets.  In this case, Twitter has used some duplicate XML tags, namely title, description and link in both the channel element and item elements, so our script should pull only the item information, unless we wanted to publish the channel information, which for this we will not.</p>
<p><a class="quickcode" title="Code" href="javascript:toggleLayer('quickcode892');">Quick Code</a></p>
<div id="quickcode892" class="quickcode"><code><br />
1.&nbsp;&nbsp; &lt;?php<br />
2.&nbsp;&nbsp; $reader = new XMLReader();<br />
3.&nbsp;&nbsp; $reader-&gt;open(&#039;http://twitter.com/statuses/user_timeline/twitterusernamehere.rss?count=1/&#039;);<br />
4.&nbsp;&nbsp; <br />
5.&nbsp;&nbsp; while ($reader-&gt;read()) <br />
6.&nbsp;&nbsp; {<br />
7.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ($reader-&gt;nodeType == XMLREADER::ELEMENT) <br />
8.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
9.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $name = $reader-&gt;name;<br />
10.&nbsp;&nbsp;<br />
11.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($name == &quot;item&quot;)<br />
12.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
13.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while($reader-&gt;read())<br />
14.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
15.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if($reader-&gt;nodeType == XMLREADER::ELEMENT)<br />
16.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
17.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$noName = $reader-&gt;name;<br />
18.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($noName == &quot;description&quot; || $noName == &quot;pubDate&quot; || $noName == &quot;link&quot;)<br />
19.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
20.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$reader-&gt;read();<br />
21.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result .= $reader-&gt;value.&quot;&lt;br&gt;&quot;;<br />
22.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
23.&nbsp;&nbsp;<br />
24.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
25.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
26.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
27.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
28.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
29.&nbsp;&nbsp;&nbsp;&nbsp; }<br />
30.&nbsp;&nbsp; <br />
31.&nbsp;&nbsp;}<br />
32.&nbsp;&nbsp;<br />
33.&nbsp;&nbsp;<br />
34.&nbsp;&nbsp;$reader-&gt;close();<br />
35.&nbsp;&nbsp;<br />
36.&nbsp;&nbsp;?&gt; <br />
&nbsp;<br />
</code></div>
<p>What the script does:<br />
Line 2 creates a new instance of an XMLReader object<br />
Line 3 opens the RSS feed from Twitter - the username will be your Twitter user name (or what ever Twitter user name you want to get updates for) and the count URL parameter tells it to only retrieve the latest Tweet.  You can ommit the count and get all, or specify another number here.<br />
Line 5 starts a while loop that will loop through the entire contents of the XML file returned from our open command.<br />
Line 7 checks for the node type and if it is equal to an ELEMENT, takes action.<br />
Line 9 sets the value of the Element.<br />
Line 11 Validates the element to be equal to item, item being the element that contains our tweet.<br />
Line 13 begins a new while loops (almost a recursive action here) and moves through the file again, to get the actual Tweet text from within the Item element.<br />
Line 15 again checks that we are working with elements<br />
Line 17 assigns each element to the variable<br />
Line 18 checks the variable to be equal to the elements that we want, description, pubDate and link.<br />
Line 20 tells the object to read the XML/RSS stream<br />
Line 21 appends the $result variable with the values from our selected elements.<br />
Line 34 closes our XMLReader stream.</p>
<p>Now all we need to do is include this into a PHP page, echo or print the $result variable and we will get an output like the following:</p>
<p><a class="quickcode" title="Code" href="javascript:toggleLayer('quickcode893');">Quick Code</a></p>
<div id="quickcode893" class="quickcode"><code><br />
southplatte: working on database stuff with MySQL<br />
Tue, 21 Oct 2008 05:35:21 +0000<br />
http://twitter.com/southplatte/statuses/968543230<br />
southplatte: Another interview setup for Wednesday, still waiting on the one from last week to decide, it is between myself and one other person!<br />
Sat, 18 Oct 2008 15:28:30 +0000<br />
http://twitter.com/southplatte/statuses/965216528<br />
</code></div>
<p>As you can see, we have some formatting issues to deal with, such as double spacing between Tweets, maybe formatting the date string, and encasulating the entire tweet with the link so it could be clicked and take the visitor to the individual Tweet on the Twitter web site.</p>
<p>The final page I have it in on my testing server is:</p>
<p><a class="quickcode" title="Code" href="javascript:toggleLayer('quickcode894');">Quick Code</a></p>
<div id="quickcode894" class="quickcode"><code><br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;<br />
&lt;title&gt;Untitled Document&lt;/title&gt;<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
&lt;!&#45;-<br />
.style1 {<br />
&nbsp;&nbsp;font-family: Verdana, Arial, Helvetica, sans-serif;<br />
&nbsp;&nbsp;font-size: .8em;<br />
&nbsp;&nbsp;color: #666666;<br />
&nbsp;&nbsp;background-color: #FFFFFF;<br />
}<br />
&#45;-&gt;<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;?php<br />
$reader = new XMLReader();<br />
$reader-&gt;open(&#039;http://twitter.com/statuses/user_timeline/southplatte.rss?count=1/&#039;);<br />
&nbsp;<br />
while ($reader-&gt;read()) <br />
{<br />
&nbsp;&nbsp; if ($reader-&gt;nodeType == XMLREADER::ELEMENT) <br />
&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $name = $reader-&gt;name;<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($name == &quot;item&quot;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while($reader-&gt;read())<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($reader-&gt;nodeType == XMLREADER::ELEMENT)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$noName = $reader-&gt;name;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($noName == &quot;description&quot; || $noName == &quot;pubDate&quot; || $noName == &quot;link&quot;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$reader-&gt;read();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result .= $reader-&gt;value.&quot;&lt;br&gt;&quot;;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//break;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp; }</p>
<p>}<br />
&nbsp;<br />
$reader-&gt;close();<br />
&nbsp;<br />
?&gt; <br />
&lt;body&gt;<br />
&lt;span class=&quot;style1&quot;&gt;&lt;?php echo $result;?&gt;&lt;/span&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
&nbsp;<br />
</code></div>
<p>This could definitely not be used for much, but you could also set up a very similar and though not quite as simplistic page to read any RSS feed, thus creating your own PHP RSS/XML reader.  It could definitely be extended and enhanced to perform some very advanced functionality as well.</p>
<p><a href="http://twitter.com/home/?status=www.xnte7.th8.us+PHP+5%2C+Twitter+%26%23038%3B+XMLReader"class="tt-small"  title="Post to Twitter (www.xnte7.th8.us)" onclick="javascript:urchinTracker ('/outbound/article/twitter.com');"><img class="nothumb" src="http://www.southplattewebdesign.com/wp-content/plugins/tweet-this/tweet-this-small.png" alt="[Post to Twitter]" /> Tweet This</a></p>
<p><a href="http://feeds.feedburner.com/~a/spwd?a=Y6cV7g"><img src="http://feeds.feedburner.com/~a/spwd?i=Y6cV7g" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/spwd?a=wpgzm"><img src="http://feeds.feedburner.com/~f/spwd?i=wpgzm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=c4kUm"><img src="http://feeds.feedburner.com/~f/spwd?i=c4kUm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=ZcStm"><img src="http://feeds.feedburner.com/~f/spwd?i=ZcStm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=RMW3m"><img src="http://feeds.feedburner.com/~f/spwd?i=RMW3m" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=cod5M"><img src="http://feeds.feedburner.com/~f/spwd?i=cod5M" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/spwd/~4/429326109" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.southplattewebdesign.com/2008/10/22/php-5-twitter-xmlreader/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.southplattewebdesign.com/2008/10/22/php-5-twitter-xmlreader/</feedburner:origLink></item>
		<item>
		<title>Available for Freelance and other work</title>
		<link>http://feeds.feedburner.com/~r/spwd/~3/413549846/</link>
		<comments>http://www.southplattewebdesign.com/2008/10/06/available-for-freelance-and-other-work/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 06:54:14 +0000</pubDate>
		<dc:creator>Billy</dc:creator>
		
		<category><![CDATA[E-Commerce]]></category>

		<category><![CDATA[Graphic Design]]></category>

		<category><![CDATA[Internet Tools]]></category>

		<category><![CDATA[Off-Topic]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Search Engines]]></category>

		<category><![CDATA[Servers]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<category><![CDATA[Web Design]]></category>

		<category><![CDATA[contract work]]></category>

		<category><![CDATA[employment]]></category>

		<category><![CDATA[freelance]]></category>

		<category><![CDATA[freelance php]]></category>

		<category><![CDATA[freelance web programmer]]></category>

		<category><![CDATA[php employment]]></category>

		<category><![CDATA[web developer]]></category>

		<guid isPermaLink="false">http://www.southplattewebdesign.com/?p=83</guid>
		<description>I am currently accepting new projects, either on a freelance basis or on an employment basis.  The employment basis may be either a temporary, temp-to-hire, contract-to-hire or direct hire situation.  At this time I am not available for relocation, so local opportunities (those that are not available via telecommuting/offsite work) must be within [...]</description>
			<content:encoded><![CDATA[<p>I am currently accepting new projects, either on a freelance basis or on an employment basis.  The employment basis may be either a temporary, temp-to-hire, contract-to-hire or direct hire situation.  At this time I am not available for relocation, so local opportunities (those that are not available via telecommuting/offsite work) must be within the Front Range to Southern Colorado area. </p>
<p> Use my <a href="http://www.southplattewebdesign.com/contact-bill/" >contact page</a> if you are interesting in discussing any potential opportunities.</p>
<p><a href="http://twitter.com/home/?status=www.w98e7.th8.us+Available+for+Freelance+and+other+work"class="tt-small"  title="Post to Twitter (www.w98e7.th8.us)" onclick="javascript:urchinTracker ('/outbound/article/twitter.com');"><img class="nothumb" src="http://www.southplattewebdesign.com/wp-content/plugins/tweet-this/tweet-this-small.png" alt="[Post to Twitter]" /> Tweet This</a></p>
<p><a href="http://feeds.feedburner.com/~a/spwd?a=8oq8q0"><img src="http://feeds.feedburner.com/~a/spwd?i=8oq8q0" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/spwd?a=HftRm"><img src="http://feeds.feedburner.com/~f/spwd?i=HftRm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=3QVtm"><img src="http://feeds.feedburner.com/~f/spwd?i=3QVtm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=TkPjm"><img src="http://feeds.feedburner.com/~f/spwd?i=TkPjm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=Fgxzm"><img src="http://feeds.feedburner.com/~f/spwd?i=Fgxzm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=HRieM"><img src="http://feeds.feedburner.com/~f/spwd?i=HRieM" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/spwd/~4/413549846" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.southplattewebdesign.com/2008/10/06/available-for-freelance-and-other-work/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.southplattewebdesign.com/2008/10/06/available-for-freelance-and-other-work/</feedburner:origLink></item>
		<item>
		<title>Wordpress Upgrade</title>
		<link>http://feeds.feedburner.com/~r/spwd/~3/394432356/</link>
		<comments>http://www.southplattewebdesign.com/2008/09/16/wordpress-upgrade/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 17:40:16 +0000</pubDate>
		<dc:creator>Billy</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Off-Topic]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[wordpress upgrade]]></category>

		<guid isPermaLink="false">http://www.southplattewebdesign.com/?p=66</guid>
		<description>Just upgraded to WP 2.6.2 - everything seems to be working good at this point.
 Tweet This</description>
			<content:encoded><![CDATA[<p>Just upgraded to WP 2.6.2 - everything seems to be working good at this point.</p>
<p><a href="http://twitter.com/home/?status=www.eff8k.th8.us+Wordpress+Upgrade"class="tt-small"  title="Post to Twitter (www.eff8k.th8.us)" onclick="javascript:urchinTracker ('/outbound/article/twitter.com');"><img class="nothumb" src="http://www.southplattewebdesign.com/wp-content/plugins/tweet-this/tweet-this-small.png" alt="[Post to Twitter]" /> Tweet This</a></p>
<p><a href="http://feeds.feedburner.com/~a/spwd?a=8yh3yO"><img src="http://feeds.feedburner.com/~a/spwd?i=8yh3yO" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/spwd?a=x8pPl"><img src="http://feeds.feedburner.com/~f/spwd?i=x8pPl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=ZPJhl"><img src="http://feeds.feedburner.com/~f/spwd?i=ZPJhl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=bajBl"><img src="http://feeds.feedburner.com/~f/spwd?i=bajBl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=2aDEl"><img src="http://feeds.feedburner.com/~f/spwd?i=2aDEl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=9PHvL"><img src="http://feeds.feedburner.com/~f/spwd?i=9PHvL" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/spwd/~4/394432356" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.southplattewebdesign.com/2008/09/16/wordpress-upgrade/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.southplattewebdesign.com/2008/09/16/wordpress-upgrade/</feedburner:origLink></item>
		<item>
		<title>HTTPD processes update</title>
		<link>http://feeds.feedburner.com/~r/spwd/~3/280872944/</link>
		<comments>http://www.southplattewebdesign.com/2008/04/30/httpd-processes-update/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 15:52:17 +0000</pubDate>
		<dc:creator>Billy</dc:creator>
		
		<category><![CDATA[Apache]]></category>

		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Servers]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.southplattewebdesign.com/?p=61</guid>
		<description>Last night after posting the previous post, I noticed that the httpd processes till consumed resources, but not near as much as before.  This leads me to believe that the RPC ping process that is controlled via PHP scripting is somehow spawning the child httpd processes that are causing the slow downs on the [...]</description>
			<content:encoded><![CDATA[<p>Last night after posting the previous post, I noticed that the httpd processes till consumed resources, but not near as much as before.  This leads me to believe that the RPC ping process that is controlled via PHP scripting is somehow spawning the child httpd processes that are causing the slow downs on the server.</p>
<p>As I have said, I am not too worried about it at this point, because I will be delivering the new server sometime in the next two weeks, so I won&#8217;t have to worry about it after that.</p>
<p><a href="http://twitter.com/home/?status=www.35d2m.th8.us+HTTPD+processes+update"class="tt-small"  title="Post to Twitter (www.35d2m.th8.us)" onclick="javascript:urchinTracker ('/outbound/article/twitter.com');"><img class="nothumb" src="http://www.southplattewebdesign.com/wp-content/plugins/tweet-this/tweet-this-small.png" alt="[Post to Twitter]" /> Tweet This</a></p>
<p><a href="http://feeds.feedburner.com/~a/spwd?a=DywAmJ"><img src="http://feeds.feedburner.com/~a/spwd?i=DywAmJ" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/spwd?a=A7dr6g"><img src="http://feeds.feedburner.com/~f/spwd?i=A7dr6g" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=wgOvpg"><img src="http://feeds.feedburner.com/~f/spwd?i=wgOvpg" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=GiRDlg"><img src="http://feeds.feedburner.com/~f/spwd?i=GiRDlg" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=MIJE7g"><img src="http://feeds.feedburner.com/~f/spwd?i=MIJE7g" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=eZLfHG"><img src="http://feeds.feedburner.com/~f/spwd?i=eZLfHG" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/spwd/~4/280872944" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.southplattewebdesign.com/2008/04/30/httpd-processes-update/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.southplattewebdesign.com/2008/04/30/httpd-processes-update/</feedburner:origLink></item>
		<item>
		<title>Ping list updated - test post</title>
		<link>http://feeds.feedburner.com/~r/spwd/~3/280536703/</link>
		<comments>http://www.southplattewebdesign.com/2008/04/29/ping-list-updated-test-post/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 04:20:25 +0000</pubDate>
		<dc:creator>Billy</dc:creator>
		
		<category><![CDATA[Apache]]></category>

		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Servers]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[httpd]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.southplattewebdesign.com/?p=60</guid>
		<description>I have removed all the URLs in my ping list and will now post this and check the CPU utilization during and after the post to see where the httpd process ends up.  It seems odd that posting would cause this, but nothing else on the server causes this, including other Wordpress installations.  [...]</description>
			<content:encoded><![CDATA[<p>I have removed all the URLs in my ping list and will now post this and check the CPU utilization during and after the post to see where the httpd process ends up.  It seems odd that posting would cause this, but nothing else on the server causes this, including other Wordpress installations.  The only difference that I know of outside of a few plugins is the ping list contents.</p>
<p><a href="http://twitter.com/home/?status=www.mbp9b.th8.us+Ping+list+updated+-+test+post"class="tt-small"  title="Post to Twitter (www.mbp9b.th8.us)" onclick="javascript:urchinTracker ('/outbound/article/twitter.com');"><img class="nothumb" src="http://www.southplattewebdesign.com/wp-content/plugins/tweet-this/tweet-this-small.png" alt="[Post to Twitter]" /> Tweet This</a></p>
<p><a href="http://feeds.feedburner.com/~a/spwd?a=4ScrGN"><img src="http://feeds.feedburner.com/~a/spwd?i=4ScrGN" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/spwd?a=HcR71g"><img src="http://feeds.feedburner.com/~f/spwd?i=HcR71g" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=FB3qKg"><img src="http://feeds.feedburner.com/~f/spwd?i=FB3qKg" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=SUUaSg"><img src="http://feeds.feedburner.com/~f/spwd?i=SUUaSg" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=PiEMOg"><img src="http://feeds.feedburner.com/~f/spwd?i=PiEMOg" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/spwd?a=odCEvG"><img src="http://feeds.feedburner.com/~f/spwd?i=odCEvG" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/spwd/~4/280536703" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.southplattewebdesign.com/2008/04/29/ping-list-updated-test-post/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.southplattewebdesign.com/2008/04/29/ping-list-updated-test-post/</feedburner:origLink></item>
	</channel>
</rss>
