Depends on what type of server you are using, but you can run SVN (Subversion). There is a plugin for Eclipse, Aptana and Zend Studio if you use this for development.
Essentially, you can have a development repository that resides on the server. You will pull your code into your local environment and return it after the changes. You can then set up another repository, which is your live data or products that are associated with your development repository.
If you want to update the data in real time, you just update it, so if you encounter any problems, you can cancel this code without having to roll back the development code. Once you succeed, you can begin to fork and tag your projects.
I personally use SVN and Git, but I prefer Git because it works much better. Although, if you use Windows, the command line tools just don't match linux.
source share