Problems with executing a simple svn command using the php popen function
Header ("Cache-Control: no-cache, must-revalidate"); $ handle = popen ('svnserve -- version', 'r '); $ read = stream_get_contents ($ handle); echo""; Printf ($ read); echo"
"; Pclose ($ handle );
Because my project server and SVN server are not on one server, I cannot use hooks to implement it.
This can be executed locally on the server. Normal display.
However
$ Handle = popen ('svn up/www/web01 -- username xxx -- password xxx', 'r ');It cannot be executed (but it is OK locally)
Run the following command on the server:
Svn up/www/web01 -- username xxx -- password xxx
OK
Reply to discussion (solution)
Check the version number, but an error occurs during update. Is the permission required during update?
Permission problems
Php program execution is the permission and environment variable of the www Server
Environment variables and permissions. check them carefully and give me the answer.