prova così


Codice PHP:

$descriptorspec 
= array(
        
=> array("pipe""r" ),  // stdin 
        
=> array("pipe""w" ),  // stdout 
        
=> 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