Re: Hoping for a working example of SFTP in PHP

[email protected] (Jose Nobile)
Newsgroups php.general
Message-ID <CAJ69RURMuE-EhHJWthyyDWmixkn=XP1wEn-GVniqJGFM9k9DTA@mail.gmail.com>
I found some random code, try it (use the whole class)

ssh2_auth_pubkey_file
https://github.com/mayararajesh/torque/blob/master/protected/components/SSH.php#L81

ssh2_scp_send
https://github.com/mayararajesh/torque/blob/master/protected/components/SSH.php#L95

ssh2_disconnect
https://github.com/mayararajesh/torque/blob/master/protected/components/SSH.php#L280


Regards,
José Nobile


On Sat, Feb 6, 2021 at 9:09 PM David Spector <
[email protected]> wrote:

> Eric, Thank you for all your work. Shows how uninterested the world is
> in having good secure file copying in PHP.
>
> But after I changed the end of the program to
>
> ssh2_disconnect($sftp);
> ssh2_disconnect($connection);
>
> the same error happens (a browser timeout). Are you sure these two
> statements are correct?
>
> David
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.