array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.ssh2-fetch-stream.php', 1 => 'ssh2_fetch_stream', ), 'up' => array ( 0 => 'ref.ssh2.php', 1 => 'SSH2 İşlevleri', ), 'prev' => array ( 0 => 'function.ssh2-exec.php', 1 => 'ssh2_exec', ), 'next' => array ( 0 => 'function.ssh2-fingerprint.php', 1 => 'ssh2_fingerprint', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/ssh2/functions/ssh2-fetch-stream.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL ssh2 >= 0.9.0)
ssh2_fetch_stream — Başka bir veri akımı döndürür
Bir SSH2 kanal akımı ile ilgili ikincil bir alt akım döndürür. SSH2
protokolü şimdilik tek bir alt akım tanımlamaktadır: standart hata
(SSH2_STREAM_STDERR
).
kanal
dt
Bir SSH2 kanal akımı.
İstenen akım özkaynağı ile döner.
Örnek 1 - Bir kabuk açıp kabukla ilgili standart hataya erişmek
<?php
$baglanti = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($baglanti, 'birey', 'parola');
$stdio_stream = ssh2_shell($baglanti);
$stderr_stream = ssh2_fetch_stream($stdio_stream, SSH2_STREAM_STDERR);
?>