I have a query in my php page, Could you please help me to resolve that. In php page i want to do SVN list of the repo, so i written the code as below.
page name: svn_list.php
<?php
$cmd = '/usr/bin/svn list repo_name';
exec($cmd, $output);
$output = implode("
", $output) . "
";
echo $output;
?>
If i run this script in putty by giving command "php svn_list.php" is working fine. it list out the files. but i want to see this output in browser. If i open the php file in browser it shows empty. Even i tried with using following PHP header at the top of the PHP Code, eventhough it's not displaying. Please help me on this.
header('Content-type: text/html; charset=utf-8');
Thanks in advance.