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://hxwzsj.com/article/jpsjpi.html

其他资讯

Copyright © 2025 青羊区翔捷宏鑫字牌设计制作工作室(个体工商户) All Rights Reserved 蜀ICP备2025123194号-14
友情链接: 盐亭网站设计 企业网站设计 成都做网站建设公司 重庆外贸网站建设 app网站建设 成都网站建设 成都网站设计 成都网站制作 公司网站建设 网站建设公司 教育网站设计方案 高端网站建设 成都定制网站建设 网站设计制作 成都响应式网站建设公司 成都网站制作 重庆网站制作 成都网站设计 成都网站制作 品牌网站建设 网站建设方案 成都网站设计