Re: Howto implement atomical actions
| From: | Manuel Lemos | Date: | Sat, 11 Jun 2005 20:42:01 +0000 |
| Subject: | Re: Howto implement atomical actions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216851@lists.php.net to get a copy of this message | ||
Hello,
on 06/11/2005 10:46 AM Andy Pieters said the following:
I am developing a web interface to patch a program. The user uploads the patch and after uncompressing and verification of signature, the update should take place. However I do not want users to be able to start an update and then abort the process by stopping to load the page.You can try using flock in exclusive mode on a lock file of a fixed file name. -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html