Check if a file is open by another process in PHP (Linux/UNIX)
The PHP flock() function is good when the file locking method is used the same way by all programs that will lock the file. However, you can’t check if any process in the system is actually using the file or not. If you for example are monitoring an incoming ftp folder, you don’t want to start […]