<?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";
}?>
转载于:https://www.cnblogs.com/belie8/archive/2012/09/14/2684769.html