linux 下php自動更新svn

<?php
error_reporting(E_ALL ^ E_NOTICE);
svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_USERNAME, 'username');
svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_PASSWORD, 'password');
svn_auth_set_parameter(PHP_SVN_AUTH_PARAM_IGNORE_SSL_VERIFY_ERRORS, true);
svn_auth_set_parameter(SVN_AUTH_PARAM_NON_INTERACTIVE, true);
svn_auth_set_parameter(SVN_AUTH_PARAM_NO_AUTH_CACHE, true);
svn_checkout('https://ip/svn/', '/home/sub');
echo "sub update success";
 }?>

posted on 2012-09-14 13:15  belie8  阅读(646)  评论(0编辑  收藏  举报

导航