php 直接调用svn命令

发布时间:2020-06-24 00:29:50 作者:caozhangming
来源:网络 阅读:536

程序如下php_svn.php

<pre>

<?php

system("/usr/bin/svn co --username xx --password xx --no-auth-cache    http://test.domain.com/application/config/  application/config/");

?>

</pre>



如果出现如下错误,提示

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)? "


推荐阅读:
  1. PHP直接调用类中静态方法是否执行初始化函数的问题
  2. php如何调用c

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

php 调用svn vn

上一篇:Cacti和Nagios整合

下一篇:IP报头及IP地址

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》