-1

Is there a way to access to the url where the svn is installed to get the revision number from an external php:

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

I have tried

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

1 Answer 1

0

You should be able to use the below command:

svn info http://SVN_PATH_TO_REPO

What does it return to you?

Check also if the link below could help: Running SVN commands from PHP using exec, shell_exec, or system

Sign up to request clarification or add additional context in comments.

1 Comment

It returns nothing,I´m executing the php from my localhost,and the svn is on a server

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.