开发者

Execute script when upload via FTP

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜