<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for PutraWorks @ WordPress.Com</title>
	<atom:link href="http://putraworks.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://putraworks.wordpress.com</link>
	<description>The Blog Where The Money Grow!</description>
	<lastBuildDate>Thu, 17 Sep 2009 06:29:00 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on PHP : Delete a file, or a folder and its contents by Fero</title>
		<link>http://putraworks.wordpress.com/2006/02/27/php-delete-a-file-or-a-folder-and-its-contents/#comment-26276</link>
		<dc:creator>Fero</dc:creator>
		<pubDate>Thu, 17 Sep 2009 06:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://codewrite.putraworks.com/?p=44#comment-26276</guid>
		<description>Its working well and good. But if i need to delete the folder which contains some files and empty folder. In this case it delete all the files but not the empty folder. It throws an exception like...

Warning: unlink(TEST//New Folder) [function.unlink]: Permission denied in E:\Xampp\xampp\htdocs\delete_FILE\delete_FILE.php on line 23

Warning: rmdir(TEST/) [function.rmdir]: Directory not empty in E:\Xampp\xampp\htdocs\delete_FILE\delete_FILE.php on line 28

What is the possible way to delete even the folder is empty.</description>
		<content:encoded><![CDATA[<p>Its working well and good. But if i need to delete the folder which contains some files and empty folder. In this case it delete all the files but not the empty folder. It throws an exception like&#8230;</p>
<p>Warning: unlink(TEST//New Folder) [function.unlink]: Permission denied in E:\Xampp\xampp\htdocs\delete_FILE\delete_FILE.php on line 23</p>
<p>Warning: rmdir(TEST/) [function.rmdir]: Directory not empty in E:\Xampp\xampp\htdocs\delete_FILE\delete_FILE.php on line 28</p>
<p>What is the possible way to delete even the folder is empty.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Remove Directory by sandrar</title>
		<link>http://putraworks.wordpress.com/2008/04/01/remove-directory/#comment-26273</link>
		<dc:creator>sandrar</dc:creator>
		<pubDate>Thu, 10 Sep 2009 22:28:11 +0000</pubDate>
		<guid isPermaLink="false">http://codewrite.putraworks.com/?p=109#comment-26273</guid>
		<description>Hi! I was surfing and found your blog post... nice! I love your blog.  :) Cheers! Sandra. R.</description>
		<content:encoded><![CDATA[<p>Hi! I was surfing and found your blog post&#8230; nice! I love your blog.  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Cheers! Sandra. R.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Popup Script With Re-Direct by Neotech-r3</title>
		<link>http://putraworks.wordpress.com/2008/04/24/popup-script-with-re-direct/#comment-26272</link>
		<dc:creator>Neotech-r3</dc:creator>
		<pubDate>Thu, 03 Sep 2009 17:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://putraworks.wordpress.com/?p=3717#comment-26272</guid>
		<description>I&#039;m still not get it about those script you share..Could you tell about the completely script about it..</description>
		<content:encoded><![CDATA[<p>I&#8217;m still not get it about those script you share..Could you tell about the completely script about it..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP : Delete a file, or a folder and its contents by paradox</title>
		<link>http://putraworks.wordpress.com/2006/02/27/php-delete-a-file-or-a-folder-and-its-contents/#comment-26256</link>
		<dc:creator>paradox</dc:creator>
		<pubDate>Thu, 02 Jul 2009 18:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://codewrite.putraworks.com/?p=44#comment-26256</guid>
		<description>@ Bart Huisman; Very nice. Where you have this script hosted? You make it very easy for me to deface your entire website.</description>
		<content:encoded><![CDATA[<p>@ Bart Huisman; Very nice. Where you have this script hosted? You make it very easy for me to deface your entire website.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript : Joe&#8217;s Auto Open Webpage by pietropiermarini</title>
		<link>http://putraworks.wordpress.com/2006/03/17/javascript-joes-auto-open-webpage/#comment-26230</link>
		<dc:creator>pietropiermarini</dc:creator>
		<pubDate>Sat, 09 May 2009 00:47:03 +0000</pubDate>
		<guid isPermaLink="false">http://codewrite.putraworks.com/?p=79#comment-26230</guid>
		<description>I can not use this script, help me</description>
		<content:encoded><![CDATA[<p>I can not use this script, help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP : Delete a file, or a folder and its contents by Trd</title>
		<link>http://putraworks.wordpress.com/2006/02/27/php-delete-a-file-or-a-folder-and-its-contents/#comment-26226</link>
		<dc:creator>Trd</dc:creator>
		<pubDate>Wed, 06 May 2009 08:35:49 +0000</pubDate>
		<guid isPermaLink="false">http://codewrite.putraworks.com/?p=44#comment-26226</guid>
		<description>Very helpful. Thanks a lot!!</description>
		<content:encoded><![CDATA[<p>Very helpful. Thanks a lot!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP : Delete a file, or a folder and its contents by Bart Huisman</title>
		<link>http://putraworks.wordpress.com/2006/02/27/php-delete-a-file-or-a-folder-and-its-contents/#comment-26217</link>
		<dc:creator>Bart Huisman</dc:creator>
		<pubDate>Tue, 21 Apr 2009 10:22:02 +0000</pubDate>
		<guid isPermaLink="false">http://codewrite.putraworks.com/?p=44#comment-26217</guid>
		<description>ok, theres used an bad script to avoid hacking i think, all straight qoutes are changed is diagonal ones, and not set back when showing here, so you just have to chenge the quotes by yourself....</description>
		<content:encoded><![CDATA[<p>ok, theres used an bad script to avoid hacking i think, all straight qoutes are changed is diagonal ones, and not set back when showing here, so you just have to chenge the quotes by yourself&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP : Delete a file, or a folder and its contents by Bart Huisman</title>
		<link>http://putraworks.wordpress.com/2006/02/27/php-delete-a-file-or-a-folder-and-its-contents/#comment-26216</link>
		<dc:creator>Bart Huisman</dc:creator>
		<pubDate>Tue, 21 Apr 2009 10:19:27 +0000</pubDate>
		<guid isPermaLink="false">http://codewrite.putraworks.com/?p=44#comment-26216</guid>
		<description>hmm, i see now my quotes are wrong now too, so you have to check if the quotes (single and double) are the good ones for php, not the &quot;diagonal&quot; ones.
ok, just a test to see if you could see the difrence between the quotes:
&quot; , &#039; , ` , ” ,  ‘ , ’</description>
		<content:encoded><![CDATA[<p>hmm, i see now my quotes are wrong now too, so you have to check if the quotes (single and double) are the good ones for php, not the &#8220;diagonal&#8221; ones.<br />
ok, just a test to see if you could see the difrence between the quotes:<br />
&#8221; , &#8216; , ` , ” ,  ‘ , ’</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP : Delete a file, or a folder and its contents by Bart Huisman</title>
		<link>http://putraworks.wordpress.com/2006/02/27/php-delete-a-file-or-a-folder-and-its-contents/#comment-26215</link>
		<dc:creator>Bart Huisman</dc:creator>
		<pubDate>Tue, 21 Apr 2009 10:16:04 +0000</pubDate>
		<guid isPermaLink="false">http://codewrite.putraworks.com/?p=44#comment-26215</guid>
		<description>i use it this way:

function rmdirr($dirname){
	// Sanity check
	$dirname = &quot;../albums/&quot; . $dirname;
	if (!file_exists($dirname)) {
		return false;
	}
	
	// Simple delete for a file
	if (is_file($dirname)) {
		return unlink($dirname);
	}
	
	// Loop through the folder
	$dir = dir($dirname);
	while (false !== $entry = $dir-&gt;read()) {
		// Skip pointers
		if ($entry == &#039;.&#039; &#124;&#124; $entry == &#039;..&#039;) {
			continue;
		}
		
		// Recurse
		unlink(&quot;$dirname/$entry&quot;);
	}
	
	// Clean up
	$dir-&gt;close();
	return rmdir($dirname);
}
if (rmdirr($_GET[&#039;map&#039;])){
	echo &#039;&#039;;
}
else{
	echo something went wrong.&#039;;
}

changes i made: other folder, could be removed if you want.
also the quotes are wrong when i copy it from here, it has to be straight quotes, no &quot;diagonal&quot; quotes (sorry, dont know a better english explenation)
also the loop when checking if there ale files in the flder, to delete the files, i changed it in unlink, becouse with the original he did not deleted the files, only give a php error the folder is nog empty....</description>
		<content:encoded><![CDATA[<p>i use it this way:</p>
<p>function rmdirr($dirname){<br />
	// Sanity check<br />
	$dirname = &#8220;../albums/&#8221; . $dirname;<br />
	if (!file_exists($dirname)) {<br />
		return false;<br />
	}</p>
<p>	// Simple delete for a file<br />
	if (is_file($dirname)) {<br />
		return unlink($dirname);<br />
	}</p>
<p>	// Loop through the folder<br />
	$dir = dir($dirname);<br />
	while (false !== $entry = $dir-&gt;read()) {<br />
		// Skip pointers<br />
		if ($entry == &#8216;.&#8217; || $entry == &#8216;..&#8217;) {<br />
			continue;<br />
		}</p>
<p>		// Recurse<br />
		unlink(&#8220;$dirname/$entry&#8221;);<br />
	}</p>
<p>	// Clean up<br />
	$dir-&gt;close();<br />
	return rmdir($dirname);<br />
}<br />
if (rmdirr($_GET['map'])){<br />
	echo &#8221;;<br />
}<br />
else{<br />
	echo something went wrong.&#8217;;<br />
}</p>
<p>changes i made: other folder, could be removed if you want.<br />
also the quotes are wrong when i copy it from here, it has to be straight quotes, no &#8220;diagonal&#8221; quotes (sorry, dont know a better english explenation)<br />
also the loop when checking if there ale files in the flder, to delete the files, i changed it in unlink, becouse with the original he did not deleted the files, only give a php error the folder is nog empty&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP : Delete a file, or a folder and its contents by shivkumar yadav</title>
		<link>http://putraworks.wordpress.com/2006/02/27/php-delete-a-file-or-a-folder-and-its-contents/#comment-26210</link>
		<dc:creator>shivkumar yadav</dc:creator>
		<pubDate>Tue, 10 Mar 2009 10:03:49 +0000</pubDate>
		<guid isPermaLink="false">http://codewrite.putraworks.com/?p=44#comment-26210</guid>
		<description>i want to know is there any function to check folder is empy or not</description>
		<content:encoded><![CDATA[<p>i want to know is there any function to check folder is empy or not</p>
]]></content:encoded>
	</item>
</channel>
</rss>
