2
嘗試使用羣集鎖定流,但它不起作用。PHP flock()與compress.zlib://不起作用?
$handle = fopen('/path/to/file.txt', 'r');
flock($handle, LOCK_EX); // Returns true
$handle = fopen('compress.zlib:///path/to/file.txt', 'r');
flock($handle, LOCK_EX); // Returns false
爲什麼想法爲什麼?