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

<channel>
	<title>Dan Myers &#187; PHP</title>
	<atom:link href="http://www.danmyers.name/wp/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danmyers.name/wp</link>
	<description>PHP, ActionScript, TorqueScript, Frameworks</description>
	<lastBuildDate>Fri, 27 Aug 2010 12:11:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Delete files older than XX days using PHP</title>
		<link>http://www.danmyers.name/wp/2008/12/delete-files-older-than-xx-days-using-php/</link>
		<comments>http://www.danmyers.name/wp/2008/12/delete-files-older-than-xx-days-using-php/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 22:13:51 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[file]]></category>

		<guid isPermaLink="false">http://www.danmyers.name/wp/?p=8</guid>
		<description><![CDATA[Here&#8217;s a chunk of code for deleting old files using PHP code. $days = 180; $dir = '/path/to/dir'; if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if ($file[0] == '.' &#124;&#124; is_dir($dir.'/'.$file)) { continue; } if ((time() - filemtime($dir.'/'.$file)) &#38;gt; ($days *86400)) { unlink($dir.'/'.$file); } } closedir($handle); }]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a chunk of code for deleting old files using PHP code.</p>
<pre class="brush: php;">$days = 180;
$dir = '/path/to/dir';
	if ($handle = opendir($dir)) {
	while (false !== ($file = readdir($handle))) {
		if ($file[0] == '.' || is_dir($dir.'/'.$file)) {
			continue;
		}
		if ((time() - filemtime($dir.'/'.$file)) &amp;gt; ($days *86400)) {
			unlink($dir.'/'.$file);
		}
	}
	closedir($handle);
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.danmyers.name/wp/2008/12/delete-files-older-than-xx-days-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

