Calling an svn update from a php script via a browser is not working
Posted
by hbt
on Stack Overflow
See other posts from Stack Overflow
or by hbt
Published on 2010-06-01T07:05:21Z
Indexed on
2010/06/02
11:03 UTC
Read the original article
Hit count: 262
Hey guys, I have two scripts.
- running an update and calling shell_exec('svn update') and shell_exec('svn st')
- running a mysqldump shell_exec('mysqldump params')
The svn script is not running the update command, the svn st
is printing results but not the svn update
I tried to declare parameters when calling svn update eg 'svn update ' . dir . ' --username myuser --password mypasswd --non-interactive'; -- still nothing Played with most of the params
If this is something related to binaries/permissions/groups, I don't see it. The mysqldump command works fine and is producing a file, so why isn't the svn updating the filesystem?
Please do not advise using core SVN classes in PHP. This is not an option, I don't have complete control over the server and the module is not available.
Thanks for your help,
-hbt
PS: important thing to mention here. The scripts works when called via the command line. It only fails when called via a web browser.
© Stack Overflow or respective owner