This is a discussion on SVN over exec() within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi I have the following problem: I try to run a file which is essentially <? echo exec("svn ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi
I have the following problem: I try to run a file which is essentially <? echo exec("svn info /somepath"); ?> or alternatively <? echo exec("svn co --username=bla --password=blabla svn://someurl"); ?> on the Webserver. The problem however is that that doesn't seem to have any effect. The page loads way too fast, shows no output whatsoever and the error_log's from apache are empty. Does anyone have any experience on what to do in such a case, or even has had the same problem I have? Since I am quite without any lead help would be greatly appreciated. Greetz Adrian |
|
|||
|
..oO(Adrian Nievergelt)
>I try to run a file which is essentially > > <? > echo exec("svn info /somepath"); > ?> > >or alternatively > > <? > echo exec("svn co --username=bla --password=blabla svn://someurl"); > ?> > >on the Webserver. > >The problem however is that that doesn't seem to have any effect. The >page loads way too fast, shows no output whatsoever and the error_log's >from apache are empty. Does "no output" mean no text in the browser or an completely empty result? Did you check the HTML source code? >Does anyone have any experience on what to do in such a case, or even >has had the same problem I have? I would start with using <?php instead of <?. Then make sure the error_reporting directive is set to E_ALL|E_STRICT in your php.ini. Micha |
|
|||
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Adrian Nievergelt wrote: > Hi > > I have the following problem: > > I try to run a file which is essentially > > <? > echo exec("svn info /somepath"); > ?> > > or alternatively > > <? > echo exec("svn co --username=bla --password=blabla svn://someurl"); > ?> > > on the Webserver. > > The problem however is that that doesn't seem to have any effect. The > page loads way too fast, shows no output whatsoever and the error_log's > from apache are empty. > > Does anyone have any experience on what to do in such a case, or even > has had the same problem I have? > > Since I am quite without any lead help would be greatly appreciated. > > Greetz > Adrian Check if the apache, www or nobody accounts have execute permissions on the svn binary. Am I correct in assuming that you can run the program from the shell? Also, check if SafeMode is on. I can't recall the details from memory but I don't think it allows executables to be run from PHP except in specif directories. - -- Brendan Gillatt brendan {at} brendangillatt {dot} co {dot} uk http://www.brendangillatt.co.uk PGP Key: http://pgp.mit.edu:11371/pks/lookup?...rch=0xBACD7433 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) iD8DBQFHTZArkA9dCbrNdDMRAq3AAJ9zI7I3qeptYCxRITPu9A F36HOq7gCfUbaT Xitq8OsM2uuGTwh08GD99XE= =//mE -----END PGP SIGNATURE----- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|