views:

104

answers:

1

Hi, I want to give output of svnadmin verify command from shell_exec()

var_dump(shell_exec('/usr/bin/svnadmin verify /Users/osman/Desktop/SVN/name'));

But it returns 'null'. How can i access the response of svnadmin verify ?

Im working with PHP 5.3.2 on Mac OS X Snow Leopard

A: 

We had a similar issue and were able to get results back using http://www.php.net/manual/en/function.passthru.php

threendib
same result :( returns null when call with passthru
Osman Üngür
Make sure you give it a return arg. The passthru function doesn't return anything. passthru ('blah blah', $return);var_dump($return);
threendib
i'd used buffering from commandline.. It solved.
Osman Üngür