Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/252.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 从外部服务器获取svn修订号_Php_Svn - Fatal编程技术网

Php 从外部服务器获取svn修订号

Php 从外部服务器获取svn修订号,php,svn,Php,Svn,是否有方法访问安装svn的url,以从外部php获取修订号: <?php $url="the url where the svn is installed"; $Revisionsvn=(some command to get the revision number through the url); echo($Revisionsvn); ?> 我试过了 <?php $url = 'your repository here'; $output =

是否有方法访问安装svn的url,以从外部php获取修订号:

<?php
    $url="the url where the svn is installed";
    $Revisionsvn=(some command to get the revision number through the url);
    echo($Revisionsvn);
?>

我试过了

<?php
$url = 'your repository here';
$output = `svn info $url`;
echo "<pre>$output</pre>";
?>

您应该能够使用以下命令:

它会给你什么回报

还请检查以下链接是否有帮助:

它不返回任何内容,我从本地主机执行php,svn在服务器上
svn info http://SVN_PATH_TO_REPO