Dear Scott, Thank you for your good-looking example code.When I ran it, function call "ssh2_auth_password($connection, $user, $password)" generated the following message:
"Warning: ssh2_auth_password(): Authentication failed for *** using password in upload.php on line 37"
Note that private key authentication is one of the problem areas of all the other SFTP examples I have been able to find on the Web.
I have spent weeks trying to find a working example. David