<?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/"
		>
<channel>
	<title>Comments on: Recursively copying directories in PHP</title>
	<atom:link href="http://aidanlister.com/2004/04/recursively-copying-directories-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://aidanlister.com/2004/04/recursively-copying-directories-in-php/</link>
	<description>Code is poetry</description>
	<lastBuildDate>Tue, 09 Mar 2010 10:53:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris</title>
		<link>http://aidanlister.com/2004/04/recursively-copying-directories-in-php/comment-page-1/#comment-1353</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sun, 31 Jan 2010 22:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=63#comment-1353</guid>
		<description>Hi again,

I added a few lines of code for the following reasons:

- I added a $return variable for the recursive function to prevent a mistaken TRUE return value.
- I added a chmod for folders, so that I can delete them off the server via ftp.
- (I also added an array to the parameters for folders who&#039;s content I don&#039;t want to copy)

http://www.dickinson.ch/public_code/php_dirs_copy.txt

I also created a second function to delete folders and files recursively, which I needed after having run your test-program on the original code (deleting the folders and files over ftp was impossible, and when I used filezilla, it went into an infinite loop - supposedly because of the symbolic links).

http://www.dickinson.ch/public_code/php_dirs_delete.txt</description>
		<content:encoded><![CDATA[<p>Hi again,</p>
<p>I added a few lines of code for the following reasons:</p>
<p>- I added a $return variable for the recursive function to prevent a mistaken TRUE return value.<br />
- I added a chmod for folders, so that I can delete them off the server via ftp.<br />
- (I also added an array to the parameters for folders who&#8217;s content I don&#8217;t want to copy)</p>
<p><a href="http://www.dickinson.ch/public_code/php_dirs_copy.txt" rel="nofollow">http://www.dickinson.ch/public_code/php_dirs_copy.txt</a></p>
<p>I also created a second function to delete folders and files recursively, which I needed after having run your test-program on the original code (deleting the folders and files over ftp was impossible, and when I used filezilla, it went into an infinite loop &#8211; supposedly because of the symbolic links).</p>
<p><a href="http://www.dickinson.ch/public_code/php_dirs_delete.txt" rel="nofollow">http://www.dickinson.ch/public_code/php_dirs_delete.txt</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://aidanlister.com/2004/04/recursively-copying-directories-in-php/comment-page-1/#comment-1352</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sun, 31 Jan 2010 19:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=63#comment-1352</guid>
		<description>Hi Aidan,
Thanks for sharing a great function. Just one remark. It seems to me like your recursive calling of copyr() at line 37 should take into consideration the return value, and if ever it is false, return false at the end of the function. Otherwise your function will always return true, as long as the first level of recursion returns no errors. Errors that happen in the deeper levels of your recursion are never reported back to the original caller of the function, no? Let me know if I&#039;m missing something here.
Cheers,
Chris</description>
		<content:encoded><![CDATA[<p>Hi Aidan,<br />
Thanks for sharing a great function. Just one remark. It seems to me like your recursive calling of copyr() at line 37 should take into consideration the return value, and if ever it is false, return false at the end of the function. Otherwise your function will always return true, as long as the first level of recursion returns no errors. Errors that happen in the deeper levels of your recursion are never reported back to the original caller of the function, no? Let me know if I&#8217;m missing something here.<br />
Cheers,<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fandi</title>
		<link>http://aidanlister.com/2004/04/recursively-copying-directories-in-php/comment-page-1/#comment-1311</link>
		<dc:creator>Fandi</dc:creator>
		<pubDate>Wed, 16 Dec 2009 07:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=63#comment-1311</guid>
		<description>Saved me a lot of time. Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Saved me a lot of time. Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vivek</title>
		<link>http://aidanlister.com/2004/04/recursively-copying-directories-in-php/comment-page-1/#comment-1295</link>
		<dc:creator>vivek</dc:creator>
		<pubDate>Fri, 20 Nov 2009 14:37:02 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=63#comment-1295</guid>
		<description>very good  coding. It&#039;s very useful..
Thanks...</description>
		<content:encoded><![CDATA[<p>very good  coding. It&#8217;s very useful..<br />
Thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rillwose</title>
		<link>http://aidanlister.com/2004/04/recursively-copying-directories-in-php/comment-page-1/#comment-1238</link>
		<dc:creator>rillwose</dc:creator>
		<pubDate>Thu, 17 Sep 2009 13:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=63#comment-1238</guid>
		<description>Thanks for the awesome script, I have pretty much got it working as I want. BUT in running the initial testing that you provide above, there are now two folders on my web server that I cannot delete. I can move them around, but they just don&#039;t seem to delete.

Any ideas?</description>
		<content:encoded><![CDATA[<p>Thanks for the awesome script, I have pretty much got it working as I want. BUT in running the initial testing that you provide above, there are now two folders on my web server that I cannot delete. I can move them around, but they just don&#8217;t seem to delete.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aidan Lister</title>
		<link>http://aidanlister.com/2004/04/recursively-copying-directories-in-php/comment-page-1/#comment-714</link>
		<dc:creator>Aidan Lister</dc:creator>
		<pubDate>Fri, 05 Jun 2009 00:46:18 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=63#comment-714</guid>
		<description>Hi Nightmoon,

Glad you liked the function! Your feedback is donation enough, good luck with the project.</description>
		<content:encoded><![CDATA[<p>Hi Nightmoon,</p>
<p>Glad you liked the function! Your feedback is donation enough, good luck with the project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nightmoon Eagle</title>
		<link>http://aidanlister.com/2004/04/recursively-copying-directories-in-php/comment-page-1/#comment-707</link>
		<dc:creator>Nightmoon Eagle</dc:creator>
		<pubDate>Wed, 03 Jun 2009 14:18:44 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=63#comment-707</guid>
		<description>I have been commissioned to provide a univeral installation system for a company that has several php-based content/database management systems. I have used this copy function (copied asis into it&#039;s own file) without a hitch. Very nice work, and is there somewhere I can send a donation?</description>
		<content:encoded><![CDATA[<p>I have been commissioned to provide a univeral installation system for a company that has several php-based content/database management systems. I have used this copy function (copied asis into it&#8217;s own file) without a hitch. Very nice work, and is there somewhere I can send a donation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis</title>
		<link>http://aidanlister.com/2004/04/recursively-copying-directories-in-php/comment-page-1/#comment-598</link>
		<dc:creator>Luis</dc:creator>
		<pubDate>Mon, 04 May 2009 16:46:53 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=63#comment-598</guid>
		<description>Thanks very much. I was looking for such a function today and this one is perfect :)</description>
		<content:encoded><![CDATA[<p>Thanks very much. I was looking for such a function today and this one is perfect <img src='http://aidanlister.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koza</title>
		<link>http://aidanlister.com/2004/04/recursively-copying-directories-in-php/comment-page-1/#comment-566</link>
		<dc:creator>Koza</dc:creator>
		<pubDate>Thu, 31 Aug 2006 06:59:35 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=63#comment-566</guid>
		<description>Wow, This is my FIRST work script !</description>
		<content:encoded><![CDATA[<p>Wow, This is my FIRST work script !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Forumarket2002</title>
		<link>http://aidanlister.com/2004/04/recursively-copying-directories-in-php/comment-page-1/#comment-562</link>
		<dc:creator>Forumarket2002</dc:creator>
		<pubDate>Thu, 03 Aug 2006 15:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://aidanlister.com/?p=63#comment-562</guid>
		<description>Excellent script it works perfectly.
If you are looking to try to make the exec (cp) work, this is easier for real</description>
		<content:encoded><![CDATA[<p>Excellent script it works perfectly.<br />
If you are looking to try to make the exec (cp) work, this is easier for real</p>
]]></content:encoded>
	</item>
</channel>
</rss>
