[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Problem with scripted SVN output

From: Maarten van der Veen <mjvdveen_at_ai.rug.nl>
Date: 2005-05-02 23:53:43 CEST

I'm trying to build a PHP environment for updating working copy's.

I'm using the exec($command, $output) PHP function to send command's to
the server and get the $output back which I use in php to check if there
is a new revision.. etc.

I'm experiencing the following problem:
In FEDORA 3, my local testing environment, when I execute a php file:
exec('/usr/local/bin/svn log --limit 1 /path/to/directory', $output);

I get the first log entry neatly in an array back and printed in the

When I execute this same script in the console, with the PHP binary, I
get the same output.

So far, so good.

But, on Slackware Slackware 9.1.0 and 8.1.0, my remote testing
environments, when I execute this php file in the browser I get NO
output back from svn.
When I run this file on this remote server in the console, I DO get back
the proper output. So it doesn't seem to be a PHP configuration problem.

When I test the following file in the browser on the Slackware machines:
exec('/bin/date', $output);

I DO get output in both the browser and the console.

So, it seems to me that there is a specific thing with SVN, why it
doesn't give me any feedback to the TTY in which it is executed on the
slackware machines.

Does anyone have a clue what is going on here?


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 2 23:55:37 2005

This is an archived mail posted to the Subversion Users mailing list.