I have the following situation: A remote process called "A" sends files to a FTP server. A remote process called "B" reads the files sent by the process "A" in the FTP server and do something.
This situation illustrates a potential concurrency problem if the process "B" reads a file is being writing by the process "A".
I need to develop the process "B" in PHP. Can I check if a file is being writing right now? but if not... What alternative do you suggest?
EDIT Process A is not under my control.