How can i know if someone is writing to a file , so i can skip writing or reading it ? file-locking could be used here , but there are some problems found ! like this one : https://bugs.php.net/bug.php?id=54453
Any other ideas ?
I want to skip writing/reading to a file without waiting for the file to be unlocked like the case in LOCK_EX
or LOCK_SH
, where code hangs till file is unlocked !