Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ssh2_scp_sendssh2_send_signal>
^SSH2 FunctionsLast updated: Mon, 26 Oct 2026

ssh2_send_eof

(PECL ssh2 >= 1.3)

ssh2_send_eof — Send EOF to stream

Description

function ssh2_send_eof(resource $channel): bool

Sends an EOF to the stream; this is typically used to close standard input, while keeping output and error alive. For example, one can send a remote process some data over standard input, close it to start processing, and still be able to read out the results without creating additional files.

Parameters

channel

An SSH stream; can be acquired through functions like ssh2_fetch_stream() or ssh2_connect().

Return Values

Returns true on success or false on failure.

See Also


<ssh2_scp_sendssh2_send_signal>
^SSH2 FunctionsLast updated: Mon, 26 Oct 2026