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. Dan _______________________________________________ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel