My server uses NFS (Network File System), and I'm unable to use PHP's flock() -function. Is there a way to lock files on an NFS or is there a need to do so?
|
From the client, run " Oh, also bear in mind that in some circumstances NFS and statd can get upset if both the client and the server don't have reliable hostname entries for each other. Double check |
|||
|
|
I don't know how the PHP flock() function is implemented, but assuming it's an interface to the flock() syscall, then it does not work at all over NFS. From the flock() manpage:
And, of course, everything what a man page says, no matter how outdated, is the ultimate truth. |
||||
|
Just wanted to answer to myself. The solution can be found here: http://us3.php.net/manual/en/function.flock.php#82521 |
|||||
|