How can I write a svn export command using php?
I want to export some files from my server. For that I created one php page. How can I write svn export command in php.
I call this php file from a nant script. Nant script command is like this. I need to write it on php script.
&开发者_Python百科ltexec program="svn.exe" basedir="${svnexedir}" commandline="export --force "${tagrepo}/DevScripts/install.php/" "${localrepo}/myTest/DevScripts/install.php/"" />
You can either search around for a PHP svn module.
Or, easier (potentially better), just use exec() or one of the functions like it.
http://php.net/exec
精彩评论