1

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

osm
  • 4,186
  • 3
  • 23
  • 24

2 Answers2

0

This error may be caused by the disable_functions setting in php.ini (or suhosin.executor.func.whitelist is Suhosin is installed).

You can have a look here to override it : Overriding global php.ini file

Community
  • 1
  • 1
Julien
  • 2,747
  • 1
  • 12
  • 17
-1

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

Nathan Hess
  • 741
  • 1
  • 8
  • 18