flock « File Directory « PHP






1.Locking Files with flock( )
2.If file lock is not available, flock( ) will return immediately with false rather than wait for a lock to become available.
3.Using advisory file locking
4.The file locking mechanism in PHP makes processes queue up for their locks by default