To do
<?php $fp = fopen(“/tmp/lock.txt”, “w+”); if (flock($fp, LOCK\_EX)) { // do an exclusive lock fwrite($fp, “Write something heren”); flock($fp, LOCK\_UN); // release the lock } else { echo “Couldn’t lock the file !”; } fclose($fp); ?> http://us3.php.net/flock read – write Berkeley DB Response handling in response.c Bình luận (4) Sasha — 2009-06-30 07:39 Yêu cầu không post mấy cái này lên, đọc chẳng hiểu gì cả 😐 Nguyễn Kim Loan — 2009-07-01 05:03 ...