fopen() append contention

From: Date: Sun, 19 Mar 2000 20:19:14 +0000
Subject: fopen() append contention
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-12414@lists.php.net to get a copy of this message
Have a quick question concerning fopen with append. With multiple scripts all writing to the same file, is there a risk that I end up overwriting data, even though I specify append? ie. Instance one opens file for append, file pointer set to end of file. Instance two already has an open copy for append, writes something. Instance one writes something. The question is, can I avoid locking? comp.perl had a large discussion on this, and the feeling was yes. I'd prefer to avoid a locking solution, and am looking to be able to create log files along the lines of syslog which of course doesn't requires locking. August

« previous php.version4 (#12414) next »