<?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: PHP Script To Monitor FTP Directory Changes</title>
	<atom:link href="http://www.franzone.com/2008/06/05/php-script-to-monitor-ftp-directory-changes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.franzone.com/2008/06/05/php-script-to-monitor-ftp-directory-changes/</link>
	<description>thoughts of a web geek</description>
	<lastBuildDate>Thu, 18 Mar 2010 19:14:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jonathan Franzone</title>
		<link>http://www.franzone.com/2008/06/05/php-script-to-monitor-ftp-directory-changes/comment-page-1/#comment-4825</link>
		<dc:creator>Jonathan Franzone</dc:creator>
		<pubDate>Thu, 18 Mar 2010 19:14:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/?p=580#comment-4825</guid>
		<description>First line in the file. This basically tells the shell how to execute the file. So when you execute it the shell will run the &quot;env&quot; command with an argument of &quot;php&quot; which should return the path to your php executable. It will then use that to parse/run the rest of the file. You&#039;ll also need to make the file executable like:

&gt; chmod 755 file.php</description>
		<content:encoded><![CDATA[<p>First line in the file. This basically tells the shell how to execute the file. So when you execute it the shell will run the &#8220;env&#8221; command with an argument of &#8220;php&#8221; which should return the path to your php executable. It will then use that to parse/run the rest of the file. You&#8217;ll also need to make the file executable like:</p>
<p>> chmod 755 file.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://www.franzone.com/2008/06/05/php-script-to-monitor-ftp-directory-changes/comment-page-1/#comment-4822</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Mon, 15 Mar 2010 14:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/?p=580#comment-4822</guid>
		<description>what and where do you prepend:

#!/usr/bin/env php

any help will be highly appreciated! Thank You!</description>
		<content:encoded><![CDATA[<p>what and where do you prepend:</p>
<p>#!/usr/bin/env php</p>
<p>any help will be highly appreciated! Thank You!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cori</title>
		<link>http://www.franzone.com/2008/06/05/php-script-to-monitor-ftp-directory-changes/comment-page-1/#comment-4744</link>
		<dc:creator>Cori</dc:creator>
		<pubDate>Fri, 30 Oct 2009 22:42:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/?p=580#comment-4744</guid>
		<description>For example, would there be a way to use ftp_rawlist and extract just the relevant info?  I don&#039;t think ftp_nlist allows recursive, which is just stupid on PHP&#039;s part.</description>
		<content:encoded><![CDATA[<p>For example, would there be a way to use ftp_rawlist and extract just the relevant info?  I don&#8217;t think ftp_nlist allows recursive, which is just stupid on PHP&#8217;s part.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cori</title>
		<link>http://www.franzone.com/2008/06/05/php-script-to-monitor-ftp-directory-changes/comment-page-1/#comment-4743</link>
		<dc:creator>Cori</dc:creator>
		<pubDate>Thu, 29 Oct 2009 22:30:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/?p=580#comment-4743</guid>
		<description>Any way to make this go more than one directory deep?</description>
		<content:encoded><![CDATA[<p>Any way to make this go more than one directory deep?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: softy</title>
		<link>http://www.franzone.com/2008/06/05/php-script-to-monitor-ftp-directory-changes/comment-page-1/#comment-4719</link>
		<dc:creator>softy</dc:creator>
		<pubDate>Sun, 27 Sep 2009 04:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/?p=580#comment-4719</guid>
		<description>I have tested and I get following problems: Can you throw some light as why these are showing up?


Warning: Invalid argument supplied for foreach() in /home/test/public_html/testmonitor/ftpnitor.php on line 34

Warning: sort() expects parameter 1 to be array, boolean given in /home/test/public_html/testmonitor/ftpnitor.php on line 59

Warning: array_diff() [function.array-diff]: Argument #2 is not an array in /home/test/public_html/testmonitor/ftpnitor.php on line 63

Warning: fopen(ftp_cache) [function.fopen]: failed to open stream: Is a directory in /home/test/public_html/testmonitor/ftpnitor.php on line 87

Warning: fwrite(): supplied argument is not a valid stream resource in /home/test/public_html/testmonitor/ftpnitor.php on line 88

Warning: fflush(): supplied argument is not a valid stream resource in /home/test/public_html/testmonitor/ftpnitor.php on line 89

Warning: fclose(): supplied argument is not a valid stream resource in /home/test/public_html/testmonitor/ftpnitor.php on line 90</description>
		<content:encoded><![CDATA[<p>I have tested and I get following problems: Can you throw some light as why these are showing up?</p>
<p>Warning: Invalid argument supplied for foreach() in /home/test/public_html/testmonitor/ftpnitor.php on line 34</p>
<p>Warning: sort() expects parameter 1 to be array, boolean given in /home/test/public_html/testmonitor/ftpnitor.php on line 59</p>
<p>Warning: array_diff() [function.array-diff]: Argument #2 is not an array in /home/test/public_html/testmonitor/ftpnitor.php on line 63</p>
<p>Warning: fopen(ftp_cache) [function.fopen]: failed to open stream: Is a directory in /home/test/public_html/testmonitor/ftpnitor.php on line 87</p>
<p>Warning: fwrite(): supplied argument is not a valid stream resource in /home/test/public_html/testmonitor/ftpnitor.php on line 88</p>
<p>Warning: fflush(): supplied argument is not a valid stream resource in /home/test/public_html/testmonitor/ftpnitor.php on line 89</p>
<p>Warning: fclose(): supplied argument is not a valid stream resource in /home/test/public_html/testmonitor/ftpnitor.php on line 90</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NOdaddy.com</title>
		<link>http://www.franzone.com/2008/06/05/php-script-to-monitor-ftp-directory-changes/comment-page-1/#comment-4534</link>
		<dc:creator>NOdaddy.com</dc:creator>
		<pubDate>Mon, 06 Jul 2009 13:23:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/?p=580#comment-4534</guid>
		<description>I wish this form retained my formatting :&#124;</description>
		<content:encoded><![CDATA[<p>I wish this form retained my formatting <img src='http://www.franzone.com/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NOdaddy.com</title>
		<link>http://www.franzone.com/2008/06/05/php-script-to-monitor-ftp-directory-changes/comment-page-1/#comment-4533</link>
		<dc:creator>NOdaddy.com</dc:creator>
		<pubDate>Mon, 06 Jul 2009 13:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/?p=580#comment-4533</guid>
		<description>sweeet

could you next provide a PHP &#039;fancy&#039; directory listing app.. that instead of creating for local directory logs in with FTP credentials?

akin to the evoluted script, but better
http://www.evoluted.net/community/code/directorylisting.php</description>
		<content:encoded><![CDATA[<p>sweeet</p>
<p>could you next provide a PHP &#8216;fancy&#8217; directory listing app.. that instead of creating for local directory logs in with FTP credentials?</p>
<p>akin to the evoluted script, but better<br />
<a href="http://www.evoluted.net/community/code/directorylisting.php" rel="nofollow">http://www.evoluted.net/community/code/directorylisting.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeff</title>
		<link>http://www.franzone.com/2008/06/05/php-script-to-monitor-ftp-directory-changes/comment-page-1/#comment-4251</link>
		<dc:creator>jeff</dc:creator>
		<pubDate>Mon, 29 Dec 2008 17:48:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/?p=580#comment-4251</guid>
		<description>OK, just found out my web hosting company does NOT support FTP functions via PHP. I&#039;ll have to figure something else out. Thanks again.</description>
		<content:encoded><![CDATA[<p>OK, just found out my web hosting company does NOT support FTP functions via PHP. I&#8217;ll have to figure something else out. Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Franzone</title>
		<link>http://www.franzone.com/2008/06/05/php-script-to-monitor-ftp-directory-changes/comment-page-1/#comment-4250</link>
		<dc:creator>Jonathan Franzone</dc:creator>
		<pubDate>Mon, 29 Dec 2008 15:43:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/?p=580#comment-4250</guid>
		<description>No, it shouldn&#039;t matter what is installed on the server as far as PHP goes. You should definitely make sure your local PHP installation has the FTP modules enabled though.</description>
		<content:encoded><![CDATA[<p>No, it shouldn&#8217;t matter what is installed on the server as far as PHP goes. You should definitely make sure your local PHP installation has the FTP modules enabled though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeff</title>
		<link>http://www.franzone.com/2008/06/05/php-script-to-monitor-ftp-directory-changes/comment-page-1/#comment-4249</link>
		<dc:creator>jeff</dc:creator>
		<pubDate>Mon, 29 Dec 2008 15:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.franzone.com/?p=580#comment-4249</guid>
		<description>Thanks Jonathan, var_dump outputs this &quot;bool(false)&quot;. But using ftp client or even ftp from dos prompt I can list files/dirs. Could it be the installation of the Servers PHP? do I need the ftp -enabled option set? (which I can&#039;t since its yahoo hosted) What I really need is some code to watch for when a file gets &quot;touched&quot;.</description>
		<content:encoded><![CDATA[<p>Thanks Jonathan, var_dump outputs this &#8220;bool(false)&#8221;. But using ftp client or even ftp from dos prompt I can list files/dirs. Could it be the installation of the Servers PHP? do I need the ftp -enabled option set? (which I can&#8217;t since its yahoo hosted) What I really need is some code to watch for when a file gets &#8220;touched&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
