ibjdt
Programmer
- Nov 25, 2002
- 63
i find conflicting info on file locking.
is it better to use $LOCK_SH / $LOCK_EX / $LOCK_UN when reading and writing to a db or is it ok to use
flock(DB, 2); all the time and rely on close (DB); to unlock the db??
thanks.
is it better to use $LOCK_SH / $LOCK_EX / $LOCK_UN when reading and writing to a db or is it ok to use
flock(DB, 2); all the time and rely on close (DB); to unlock the db??
thanks.