I have a big problem with a apache server running PHP. Often some PHP scripts is trying to get data from a CSV file while a Powershell script writes to it. Is there a common way to prevent this? I have tied to write to the file at a specific time and then read from the file while no writing is done. But even when I set a read error in the PHP to 20 sec. it often try to read an write at the same time.... HELP!