资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

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命令
本文URL:http://cdkjz.cn/article/jpsjpi.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220