ssh2_scp_send

ssh2_scp_send

(PECL ssh2 >= 0.9.0)

ssh2_scp_sendSend a file via SCP

Description

bool ssh2_scp_send ( resource $session , string $local_file , string $remote_file [, int $create_mode = 0644 ] )

Copy a file from the local filesystem to the remote server using the SCP protocol.

Parameters

session

An SSH connection link identifier, obtained from a call to 登录查看完整内容