Header ("Cache-control:no-cache,must-revalidate"); $handle = Popen (' Svnserve--version ', ' R '); $read = Stream_get_contents ($handle); echo "";p rintf ($read); echo"
"; Pclose ($handle);
Because my Project Server and SVN server are not on a server, so I can't do it with hooks, only in this way
This can be done locally on the server. Normal display.
But replace
$handle = Popen (' svn up/www/web01--username xxx--password xxx ', ' r ');cannot be executed (but local OK)
Execute directly on the server:
SVN up/www/web01--username xxx--password xxx
Also OK
Reply to discussion (solution)
There is no problem when performing a view of the version number, but there is a problem with the update. Do I need permission to update it?
Permissions issues
PHP program execution is the permissions and environment variables of WWW server
Environment variables, permissions, carefully check under OK big God, give me the answer.