Forum und email

svn_auth_set_parameter

(PECL svn:0.1-0.2)

svn_auth_set_parameter — Sets an authentication parameter

说明

void svn_auth_set_parameter ( string $key , string $value )

Sets authentication parameter at key to value . For a list of valid keys and their meanings, consult the authentication constants list.

参数

key

String key name. Use the authentication constants defined by this extension to specify a key.

value

String value to set to parameter at key. Format of value varies with the parameter.

注释

Warning

本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。使用本函数风险自担。

范例

Example#1 Default authentication example

This example configures SVN so that the default username to use is 'Bob' and the default password is 'abc123':

<?php
svn_auth_set_parameter
(SVN_AUTH_PARAM_DEFAULT_USERNAME'Bob');
svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_PASSWORD'abc123');
?>