prova così
Codice PHP:
$descriptorspec = array(
0 => array("pipe", "r" ), // stdin
1 => array("pipe", "w" ), // stdout
2 => array("pipe", "w" ) // stderr
);
$cwd = getcwd();
$process = proc_open($command, $descriptorspec, $pipes,$cwd);
if (is_resource($process))
{
$stream=stream_get_contents($pipes[2]);
fclose($pipes[0]);
fclose($pipes[1]);
fclose($pipes[2]);
$return_value = proc_close($process);
}
dove $command è il tuo eseguibile
----
in $return_value dovresti avere l'esito dell'operazione
in $stream la stringa di output del comando