I'm failing to display the output of an SSH stream in PHP. This is my code:
$output = ssh2_exec($sshCon, $sshCommand);
stream_set_blocking($output, true);
echo stream_get_contents($output);
The output is blank. The command is definitely running though. I also tried the solution given here: Empty PHP SSH2 stream contents, even with stream_set_blocking?
The output should be process ID, just to let you know.
Thanks!