Re: [PHP] managing cvs from php

2004-08-22 Thread robert mena
Michal,

The directories have a 777 (ok unsecure but just a test) setting.

Any tips of how can I get the stderr or a better way to do this cvs interface ?

On Thu, 19 Aug 2004 11:45:26 -0400 (EDT), Michal Migurski
[EMAIL PROTECTED] wrote:
  $cmd = cd .$pathToFile. ; /usr/bin/cvs ci -m '.$logMsg.' .$file ;
 
  passthru($cmd) ;
 
  If I echo the $cmd and paste in a shell the command works.  When I
  execute from web nothing happens and no output is seen
  (error_reporting(E_ALL))
 
 Does the apache user have read/write privileges on the files in that
 directory? CVS makes heavy usage of stderr, so that may be a reason you
 are not seeing output.
 
 -
 michal migurski- contact info and pgp key:
 sf/cahttp://mike.teczno.com/contact.html
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] managing cvs from php

2004-08-19 Thread robert mena
Hi,

I use cvs from my internal projects and will soon need to let others
change template files from a web form.

The user will load the current template, edit, preview and if ok publish.

Since I'd like to keep a history and track those changes one option
for me would be to add a cvs call with a commit off the changed file.

I do not need to do other fancy functions.  Just commit and get the
result if it worked.

My current (not working) test script is simply

$cmd = cd .$pathToFile. ; /usr/bin/cvs ci -m '.$logMsg.' .$file ;

passthru($cmd) ;

If I echo the $cmd and paste in a shell the command works.  When I
execute from web nothing happens and no output is seen
(error_reporting(E_ALL))

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] managing cvs from php

2004-08-19 Thread Michal Migurski
 $cmd = cd .$pathToFile. ; /usr/bin/cvs ci -m '.$logMsg.' .$file ;

 passthru($cmd) ;

 If I echo the $cmd and paste in a shell the command works.  When I
 execute from web nothing happens and no output is seen
 (error_reporting(E_ALL))

Does the apache user have read/write privileges on the files in that
directory? CVS makes heavy usage of stderr, so that may be a reason you
are not seeing output.

-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php