Re: File Locking during *other* file operations
| From: | Jason Barnett | Date: | Fri, 17 Dec 2004 14:35:57 +0000 |
| Subject: | Re: File Locking during *other* file operations | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204577@lists.php.net to get a copy of this message | ||
Gerard Samuel wrote:
Im talking about file locking during deleting, and moving files. Is it possible to perform file locking for these file operations? If so, can you provide psuedo code. ThanksSure... 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.