To do

Filed in Career 4 comments

<?php

$fp = fopen(“/tmp/lock.txt”, “w+”);

if (flock($fp, LOCK_EX)) { // do an exclusive lock
fwrite($fp, “Write something here\n”);
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

Posted by thaiph   @   29 June 2009 4 comments
Tags : , ,

Share This Post

RSS Digg Twitter StumbleUpon Delicious Technorati

4 Comments

Comments
Jun 30, 2009
2:39 am
#1 Sasha :

Yêu cầu không post mấy cái này lên, đọc chẳng hiểu gì cả :|

Jul 1, 2009
12:03 am

Chả hiểu gì :>

Jul 1, 2009
12:04 am

chữ thì bé tí, theme thì xấu :D

Jul 1, 2009
10:19 pm
#4 huongcc :

ko hiểu lắm :(

Leave a Comment

Previous Post
«
Next Post
»
EXULT designed by ZENVERSE  |  In conjunction with Reseller Hosting from the #1 Web Hosting Provider - HostNexus.