www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: Request for help for beginner, thanks!

Re: Request for help for beginner, thanks!

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sun, 17 Jan 2021 08:19:31 -0800

On Sun, Jan 17, 2021 at 08:27:27AM -0500, David Spector wrote:
> Please, I need the simplest possible PHP coding example of using libssh or
> libssh2 to upload a single file using the sftp protocol in the following
> environment: Windows, PHP running via a local server URL in a browser (for
> example, the URL might be "localhost/upload.php"). My actual application is
> considerably more complex, but this simple example is all I need to get
> started.

Do you need to do anything more sophisticated in the actual application than
transfer files? If not, then you may want to look at cURL binding that provides
a much simpler API for file transfers but uses libssh2 to perform the actual
sftp transfer.

libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2021-01-17

the libssh2 team