Re: Hoping for a working example of SFTP in PHP

From: Date: Sun, 07 Feb 2021 03:04:10 +0000
Subject: Re: Hoping for a working example of SFTP in PHP
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  Groups: php.general 
Request: Send a blank email to php-general+get-327467@lists.php.net to get a copy of this message
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@springtimesoftware.com> 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 >

« previous php.general (#327467) next »