simultaneous logging in php

NiXnonWater

New Member
I have a question. I have a script that's fired by a GET trigger. I'm trying to log the executions of the script using fwrite and append, but what I have happening is that if an instance is called while another instane is still writing the file, it will interrupt the fwrite and insert its own data. Is there any way I can queue the script to wait in case the file is being written to? But I don't want to lose any of the log data. Thanks in advance!
 
Back
Top