Question: I have an a script which generate some keys. This script must commit them on svn-server. They are different. Can you help me with some idea?

I think about svn php lib and system / exec, but don't know how connect with svn-server and save file there.

P.S. More about question. It was impossible. Our production server deployed from SVN repository and sometimes generates documents for accounts. We was need to save them in our repository, which closed from production for writing. So we use another way. Sorry for disappointing.

Answer: 
SVN lib is very simple. Firstly, set username and password

```
svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_USERNAME, 'username');
svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_PASSWORD, 'password');
svn_update(realpath('working-copy'));
//TODO: change files in working copy
var_dump(svn_commit('Changelog', array(realpath('working-copy'))));

```

If you don't have working-copy use `svn_checkout`
See the following [SVN functions in PHP](http://www.php.net/manual/en/ref.svn.php)

[svn\_commit](http://php.net/manual/en/function.svn-commit.php) is one of them ...

**Note**

> 
> This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.
> 
> 
>