You will need to lock the file before using it. The flock() provides that function, HOWEVER, only if ALL file accessing functions for that file use flock(). Also, there are exceptions to the usage of flock(). Best is to see the PHP documentation for an explanation and some samples on locking, at
http://nl3.php.net/manual/en/function.flock.php
Ronald :cool: