&1 ", $output);p Rint_r ($output);
You want PHP exec to execute SVN update for code synchronization. But the program did not execute as expected: The results are as follows: Ask for help
Skipped ' Svn://115.29.186.170/kf5 '
How do I do that? Or how do you implement the SVN code update that the Web server can execute directly?
Reply to discussion (solution)
PHP works with SVN to develop and verify code in real time, has anyone ever done it?
Execute EXEC (' mkdir tests '); The tests file directory can be created successfully.
Http://gongwen.sinaapp.com/article-132.html
To zy205817 thank you always hint: skipped ...
Problem Resolution: Remove the permissions to this directory. The following command must be executed first:
SVN Co FILE:///DATA/WEB/KF5/DATA/WEB/KF6
The first directory File:///data/web/kf5 is the SVN code base directory. The second directory is a web directory.
And then do it again:
SVN update/data/web/kf6/--username svn_name--password svn_passwd--no-auth-cache
Test pass:
Then write the execution script in the SVN directory hooks:
File name: Post-commit
File contents:
#!/bin/sh
Repos= "$"
rev= "$"
Export Lang=en_us. UTF-8
SVN update/data/web/kf6/--username svn_name--password svn_passwd--no-auth-cache
Finally, do not forget to give the Web directory write permissions and Post-commit file execution permissions.
SVN command Line reference:
Http://www.blogjava.net/jasmine214--love/archive/2011/01/12/342839.html