I'm using :
<?php
ob_start();
$vtag = shell_exec('git describe --tags');
if( is_null($vtag) ) { $vtag =""; }
ob_end_clean();
?>
To get the version of my GIT controlled project I'm using un-annotated tags and I can get the command to show the correct info when I run it from GIT CMD in windows 8.1.
The PHP manual (user contributed section) suggests using Ob_start
/end_clean()
to ensure we get output from std console. But its not producing any output (or error output). any idea what the problem is here??