I use Rapid PHP 2010, a co-worker uses Dreamweaver, another uses notepad to edit html files. Does anyone know of a way to lock the file so multiple users can not edit at the same time? The files are on a Linux machine using samba to access them.
Thanks,
Cathy
How to lock file when editting
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Re: How to lock file when editting
Use a version managemant for your files like Subversion or Git and try to work with local working copies on each client. Then you commit your changes into the repository. If anyone else wants to commit changes of the same file, but the revision in the repository is higher then his local one then he has to check out the newer one first. Within the checkout, the client merges the local and the repository version automatically (if possible - e.g. person 1 changes code in function A and person2 adds function B). If this is not possible you have to merge the files manually and after that you can commit your changes again!
This is definitely the best way to work on the same files / projects in larger teams. Give it a try!
Greets Evil
This is definitely the best way to work on the same files / projects in larger teams. Give it a try!
Greets Evil
-
- Posts: 4
- Joined: Fri Dec 02, 2005 6:38 pm
Re: How to lock file when editting
That sounds like a great solution. I'll look into it. Thanks for the post.
- Karlis
- Site Admin
- Posts: 3605
- Joined: Mon Jul 15, 2002 5:24 pm
- Location: Riga, Latvia, Europe
- Contact:
Re: How to lock file when editting
I am afraid like with other plain-text editors, ours does not lock the files. Version management is one solution, yes, it might seem tricky but once learned it is easy and convenient.