Php 从外部服务器获取svn修订号
是否有方法访问安装svn的url,以从外部php获取修订号: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 =
<?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