英[lɒk] 美[lɑ:k]
n. lock; sluice, ship lock; (machine parts, etc.) lock; a handful, a handful
vt. lock ; lock, close; fix; hide
vi. stuck, immobile; tangled; stiff and immobile
Third person singular: locks plural: locks present participle: locking past tense : locked past participle: locked
php flock() function syntax
Function:Lock or release the file.
Syntax:flock(file,lock,block)
Parameters:
Parameter | Description |
file | Required. Specifies an open file to be locked or released. |
lock | Required. Specifies which lock type to use. |
block | Optional. If set to 1 or true, blocks other processes while locking. |
Explanation: The file operated byflock() must be an open file pointer.