Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
omgwtfnoway
Aug 22, 2004

Uhhh.... little help here, please?
I'm trying to use exec() in a php script to add and commit some files to SVN.

I'm doing something like:

code:
$cmd = "cd c:\pathWithSVN";
exec($cmd);
$cmd = "svn add $abaFilename";
exec($cmd);
I had to cd into that path first - or else any SVN commands won't execute.

Then to commit - I do something like:

code:
$cmd = "cd c:\pathWithSVN";
exec($cmd);
$cmd = "svn commit -m \"Updates yadda yadda\"";
exec($cmd);
The problem is: neither of these commands are being run. Any ideas? I've never tried executing command line commands from a script before. This is run on a windows machine with apache/php5.

Adbot
ADBOT LOVES YOU

omgwtfnoway
Aug 22, 2004

Uhhh.... little help here, please?

duz posted:

Install the SVN PECL extension then do it natively.

This is what I ended up doing. Seems to work pretty well.

Thanks for the help.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply