php直接调用svn命令
程序如下php_svn.php
创新互联建站是一家专业提供新密企业网站建设,专注与成都网站设计、网站建设、H5响应式网站、小程序制作等业务。10年已为新密众多企业、政府机构等服务。创新互联专业网站制作公司优惠进行中。
system("/usr/bin/svn co --username xx --password xx --no-auth-cache http://test.domain.com/application/config/ application/config/");
?>
如果出现如下错误,提示
1、[15-Jan-2014 10:47:47] WARNING: [pool www] child 30635 said into stderr: "svn: Can't make directory 'application/config': Permission denied"
①表示当前php执行所在目录权限不足,可以授予777权限
2、认证错误,解决方法,添加--no-auth-cache
[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: ""
[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "can only be stored to disk unencrypted! You are advised to configure"
[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "your system so that Subversion can store passwords encrypted, if"
[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "possible. See the documentation for details."
[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: ""
[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "You can avoid future appearances of this warning by setting the value"
[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "of the 'store-plaintext-passwords' option to either 'yes' or 'no' in"
[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "'/.subversion/servers'."
[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "-----------------------------------------------------------------------"
[15-Jan-2014 11:15:43] WARNING: [pool www] child 30634 said into stderr: "Store password unencrypted (yes/no)? "
分享名称:php直接调用svn命令
网页网址:http://hbruida.cn/article/jpsjpi.html