温馨提示×

温馨提示×

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

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

php 直接调用svn命令

发布时间:2020-06-24 00:29:50 来源:网络 阅读:535 作者:caozhangming 栏目:web开发

程序如下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)? "


向AI问一下细节

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

AI