ssh2_scp_send

PECL ssh2 >= 0.9.0
ssh2_scp_send - Send a file via SCP
Manual
Code Examples

Example #1 Uploading a file via SCP

PHP Version: