>> Uhm, what happens if I actually wan't different php processes to log to >> the same file? >> I'm pretty sure I have done this at some point in Java.
In PHP you do this with very hi chances. I think on high load servers which open multiple php processes and write to the same logfile. > File locking should only ensure that your log file doesn't include corrupt > log messages due to race condition between two or more PHP processes logging > to the same file at the same time. > > It should be fine to log to the same file from different PHP processes (we > don't want to limit that possibility). Actually, we cannot limit this possiblity. Anyway, after reading a bit I think file locking is necessary. If a process cannot have the file lock, it should wait till it can. Cheers Christian > > Knut > >
