0
我无法在PHP中显示SSH流的输出。这是我的代码:PHP - ssh2读取输出流
$output = ssh2_exec($sshCon, $sshCommand);
stream_set_blocking($output, true);
echo stream_get_contents($output);
输出为空白。该命令肯定是运行。我也试过这里给出的解决方案: Empty PHP SSH2 stream contents, even with stream_set_blocking?
输出应该是进程ID,只是为了让你知道。
谢谢!