RE: [PHP] File check in/check out

From: Date: Thu, 01 May 2003 21:16:38 +0000
Subject: RE: [PHP] File check in/check out
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146010@lists.php.net to get a copy of this message
> I have been asked to create a system so that a folder on a web server will > contain files and users can check them out, edit them and then check them > back in, obviously whilst a file is checked out, it can't be edited. Is > this > possible with PHP, if so I would be very grateful for some advice on how > to > tackle this problem. Just keep track in a file or database when a file is checked out. When a user "chooses" a file, save its name somewhere. When another user chooses that file now, check and see if it's in your "list". If it is, tell them it's checked out, otherwise check it out for them. Be sure to implement a "timeout" feature so files cannot stay checked out indefinitely (unless you want that). ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#146010) next »