Category Archives: PHP

Upload Download file php sftp

Upload Download file php sftp

This code will show you how to connect to server via ssh and download, upload file via ssh2_scp like winscp.

To run this code you must install php_ssh2.dll on window for xampp by adding php_ssh2.dll to php.ini and put php_ssh2.dll in ext folder, for Ubuntu you must install php_ssh2 extension and make it available to use.

For window you can download in here for php 7.1, php 7.0 and lower version in here. Continue reading