Skip to content

Commit 8776f5d

Browse files
committed
SSH2: $lines -> $output
1 parent b25aeb4 commit 8776f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssh/examples.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ <h1>php<span class="red">sec</span>lib: SSH2 Examples and Notes</h1>
184184
$sftp->write("sudo ls -la\n");
185185
$output = $sftp->read('#Password:|username@username:~\$#', NET_SSH2_READ_REGEX);
186186
echo $output;
187-
if (preg_match('#Password:#', $lines)) {
187+
if (preg_match('#Password:#', $output)) {
188188
$ssh->write("password\n");
189189
echo $sftp->read('username@username:~$');
190190
}</span><span class="timeout">$ssh->setTimeout(5);

0 commit comments

Comments
 (0)