Bit of a hack...but give this a shot
<?
function execProg($path, $exe, $args) {
if(file_exists($path.$exe)) {
chdir($path);
if(substr(php_uname(),0,7) == "Windows") {
pclose(popen("start \"bla\" \"".$exe."\" ".escapeshellarg($args), "r"));
}
else {
exec("./".$exe." ".escapeshellarg($args)." > /dev/null &");
}
}
}
?>
Call it with
execProg("C:\WINNT\","notepad.exe","");