Re: Hoping for a working example of SFTP in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <david025@xxxxxxxxxxxxxxxxxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux