Howdy,
Trying to call an executable from my PHP script:
$cmd = "/path/binary";
File permissions on /path/binary are rwxr-xr-x, also tried rwsr-xr-x
$params = " parameter list";
$run = exec($cmd.$params, $return_array);
When the script runs, /path/binary does not execute, and both $run and $return_array are empty.
HOWEVER, when I just run exec($cmd, $return_array) - note no parameters passed to /path/binary, it returns the usage help for /path/binary - just as one would expect when running from a shell w/out parameters.
The parameters are valid, I can run /path/binary <params> from a shell (as user nobody).
One thing that comes to mind - /path/binary is dynamically linked (uses shared objects). I have tried setting permissions on the lib.so files called by the binary, but to no avail.
Anyone out there had this before?
Regards,
Iven