We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b25aeb4 commit 8776f5dCopy full SHA for 8776f5d
ssh/examples.html
@@ -184,7 +184,7 @@ <h1>php<span class="red">sec</span>lib: SSH2 Examples and Notes</h1>
184
$sftp->write("sudo ls -la\n");
185
$output = $sftp->read('#Password:|username@username:~\$#', NET_SSH2_READ_REGEX);
186
echo $output;
187
-if (preg_match('#Password:#', $lines)) {
+if (preg_match('#Password:#', $output)) {
188
$ssh->write("password\n");
189
echo $sftp->read('username@username:~$');
190
}</span><span class="timeout">$ssh->setTimeout(5);
0 commit comments