Why commands with ssh2_exec do not end?
问题 I have a problem running a command on my server remotely with ssh2_exec. When I use wget or unzip, the command should execute but I get no result or only a few files. What I need to know is how I can be sure that my ssh2_exec script will execute fully before proceeding to the rest of my PHP code. $stream =ssh2_exec($connection, 'cd /home; wget http://domain.com/myfile.zip; unzip myfile.zip; rm myfile.zip'); Thanks in advance! EDIT : I have found script, how get result of commands ? <?php $ip