Re: File Locking during *other* file operations
| From: | Gerard Samuel | Date: | Fri, 17 Dec 2004 16:56:33 +0000 |
| Subject: | Re: File Locking during *other* file operations | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204597@lists.php.net to get a copy of this message | ||
Michael Sims wrote:
Yes, have your scripts attempt to lock a separate lock file before performing deleting or moving operations. Jason Barnett wrote:
Sure... just acquire the exclusive lock like you would for writing to a file, but do the delete / move instead. Your apps must actually try to flock before *every* file operation though if you expect the locking system to work.Thanks. I'll try to see what I can come up with...