note 71832 added to function.ssh2-shell

From: Date: Mon, 18 Dec 2006 17:03:23 +0000
Subject: note 71832 added to function.ssh2-shell
Groups: php.notes 
Request: Send a blank email to php-notes+get-120749@lists.php.net to get a copy of this message
In response to webmaster at spectreanime dot com: "For some obscur reasons, just after ur command, u need to make a sleep to be sure, that the command has reached the server and is running" Actually what you must do is set the blocking of the string to true, so it waits until the server sends data to the STDOUT before echoing it. So, instead of: sleep(1); Just do: stream_set_blocking($stdio, true); Best regards, ---- Server IP: 200.185.126.100 Probable Submitter: 200.152.241.11 (proxied: 192.168.10.194) ---- Manual Page -- http://www.php.net/manual/en/function.ssh2-shell.php Edit -- https://master.php.net/note/edit/71832 Del: integrated -- https://master.php.net/note/delete/71832/integrated Del: useless -- https://master.php.net/note/delete/71832/useless Del: bad code -- https://master.php.net/note/delete/71832/bad+code Del: spam -- https://master.php.net/note/delete/71832/spam Del: non-english -- https://master.php.net/note/delete/71832/non-english Del: in docs -- https://master.php.net/note/delete/71832/in+docs Del: other reasons-- https://master.php.net/note/delete/71832 Reject -- https://master.php.net/note/reject/71832 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120749) next »