I was simply wondering if it was possible to execute a PHP开发者_JAVA百科 script when the webmaster uploads a file (image in this case) in a certain folder from a FTP software?
If yes, what methods would work best? Any link/resource/tip is glady appreciated.
Thank you!
There is no event triggered when a user uploads a file trough FTP, but what you can do is use cron to run a script every 5 minutes, the script will scan the upload folder and perform an action on the new files found.
精彩评论