I have been working some time on this and I can’t find the solution ( if there is any ).
So the question: Is there a way to do an svn update request via HTML web form?
I have tested multiple web-based SVN clients ( including building my own ), but they all lack the possibility to do an update.
I understand that this is an issue with the user permission that PHP uses, but even if I set all files on my system to 777 ( tried it on a virtual machine ), there still is no way I can archive it.
Anyone has some experience on this?
Thank you already.
I also went over all the directories and set owner to Everyone with full access. Now there can’t be a permission issue … I think.
Last edit:
It seems I can’t execute the SVN if the script file is not in the root directory of the svn directory. The final code now looks like this: http://codepad.org/Kb2K8e6m
The following function should more or less do it for you. It also prints out:
EDIT: Beware of security loopholes in this code. I have simplified it here. We had used it in one of our applications where a user reaching this point was pre-authenticated as an
Adminuser of the web application. In addition this code was executed in an MVC framework where validations on input were done in central places before executing an action in a controller.