I've tried to get output from proc_open method in php, but, when I print it, I got empty.
$descriptorspec = array(
0 => array("pipe", "r"),
1 => array("pipe", "w"),
2 => array("file", "files/temp/error-output.txt", "a")
);
$process = proc_open("time ./a a.out", $descriptorspec, $pipes, $cwd);
as long as I know, I can get the output with stream_get_contents()
echo stream_get_contents($pipes[1]); fclose($pipes[1]);
But I can't do that.. any suggestion?
Thx before...