I need to run a script every time a file is sent to a particular directory.
My server will receive a file via ftp_put
, and whenever that file arrives, I need to run a script.
I found the PHP extension PHP (File Alteration Monitor) but I do not know if using it would the best approach.