PHPのメソッドから出力を取得しようとしましproc_open
たが、印刷すると空になりました。
$descriptorspec = 配列( 0 => array("パイプ", "r"), 1 => array("パイプ", "w"), 2 => array("file", "files/temp/error-output.txt", "a") ); $process = proc_open("time ./a a.out", $descriptorspec, $pipes, $cwd);
私が知っている限り、出力を得ることができますstream_get_contents()
echo stream_get_contents($pipes[1]); fclose($パイプ[1]);
しかし、私はそれを行うことはできません..何か提案はありますか?
前にThx...