程序如下php_svn.php
創(chuàng)新互聯(lián)建站是一家專業(yè)提供新密企業(yè)網(wǎng)站建設(shè),專注與成都網(wǎng)站設(shè)計、網(wǎng)站建設(shè)、H5響應(yīng)式網(wǎng)站、小程序制作等業(yè)務(wù)。10年已為新密眾多企業(yè)、政府機構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)網(wǎng)站制作公司優(yōu)惠進行中。
system("/usr/bin/svn co --username xx --password xx --no-auth-cache http://test.domain.com/application/config/ application/config/");
?>
如果出現(xiàn)如下錯誤,提示
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執(zhí)行所在目錄權(quán)限不足,可以授予777權(quán)限
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)? "