SFTP upload to and download from a remote server in PHP 7 using phpseclib (Simple Code)

preview_player
Показать описание
This video demonstrates how easy it is to write code in PHP 7 to upload to and download from a SFTP server. The example uses a free SFTP test server to test the code for upload and download operations.

Related video: Get the list of files on SFTP server

Credits:
Music : YouTube Audio Library
Technology : PHP 7
Editor : Notepad ++
Library : phpseclib
Рекомендации по теме
Комментарии
Автор

Working success for me, really very helpful, thank you

RavinathFernando
Автор

Parse error: syntax error, unexpected 'use' (T_USE) in D:\php\test.php on line 3 .please comment to resolve the problem.

vivekanand
Автор

i got Error: Class "phpseclib3\Net\SFTP" not found, did i miss something?

bimoabditama
Автор

Thank you for this Video, but i want to know how can i list all files in the (data) directory ?
Thanks again

blktux
Автор

how to list all files of directory on sftp and read any one

shahabsafdar