pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
You cannot get a message from the ftp server, but you can poll to see if there are new files (by fetching the rawlist). The only problem can be that a file is still being written the moment you access it.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
You'd need a PHP file that connects to the FTP server, retrieves the current folder list, and compare that with what you don't have. You can then schedule this script with cron, to run it at a given interval.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
You can't. What you can do is compare the file sizes too. If they have changed since the last time then wait, otherwise retrieve the new file. This is still not fail proof since a file could be uploaded partially, aborted and then continued.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875