Allright I have my issue solved, and just wanted everyone to know about it in order not to trip over the same things... which actually was a VERY VERY dumb one.
There are basically 2 env-vars needed for PHP to analyse POST:
CONTENT_TYPE and CONTENT_LENGTH
I had those set, but here it comes... You have to use a binary save (rb) stream for the input DOH - pretty obvious. The I now user proc_open to handle the CGI i/o
$process = proc_open($command,array(array("pipe","rb"),array("pipe","w")),$pipes);
if(is_resource($process)) {
fwrite($pipes[0],$inputstream);
fclose($pipes[0]);
while(!feof($pipes[1])) {
$output .= fgets($pipes[1]);
}
fclose($pipes[1]);
$output = trim($output);
proc_close($process);
}
I just didn't use "rb" for reading the stream. Funnily the output stream has to be read with "w" and not "wb"... but works with binaries as well.
A ressult is currently available at:
http://developaz.no-ip.com/index.php?action=download(9)
Tnx! for all your help!