Putting this code into a page will let it update the site from a repository:
<pre>
<?php system( 'svn up sites/default/...'); ?>
</pre><h1>Done!</h1>
Note that apache must have write permission for the whole directory tree.
I tried the following but couldn't get it to work (probably not in my version of PHP):
svn_checkout('http://myserver.com/svn/demo', '/var/www/html/demo/temp');
If the repository requires a password for update, the following can be done:
svn up --config-dir /var/www/html --usernamesites/default/...
#(will ask for password)
This will create an auth directory in /var/www/html
chown apache -R /var/www/html/auth
<pre><?php system('svn up --config-dir /var/www/html sites/default/...'); ?></pre>
Or, to import in place (logged in as user), use:
svn=http://...
usr="--username [name]"