PHP funkce flock()
Dostupnost ve verzích: PHP 4.0
Portable advisory file locking
Parametry
| Parametr | Datový typ | Výchozí hodnota | Poznámka |
|---|---|---|---|
$handle |
resource |
není | An open file pointer. |
$operation |
int |
není | operation is one of the following: LOCK_SH to acquire a shared lock (reader). @param int $wouldblock [optional] The optional third argument is set to true if the lock would block (EWOULDBLOCK errno condition). |
$wouldblock |
int |
null | The optional third argument is set to true if the lock would block (EWOULDBLOCK errno condition). |
Návratové hodnoty
bool
vrátí true v případě úspěchu, jinak false v případě neúspěchu.