Up vote 0 down vote favorite share g+ share fb share tw.
I have the above code to connect and transfer to sftp server and I run this code I am getting message "File was successfully transferred using SFTP". But when I see the folder structure in sftp server I can't see my transfer file on sftp server. What exactly I have to do?
Php php5 sftp link|improve this question asked Mar 20 at 6:52user1122910495 92% accept rate.
For one, you could increase your accept rate. – NiftyDude Mar 20 at 6:54 that means myfolder permissions right? Its 777.
– user1122910 Mar 20 at 6:56 meta.stackoverflow.com/questions/16721/… – NiftyDude Mar 20 at 7:01 now ok its 100% :) – user1122910 Mar 20 at 7:09.
Try the following: $sftp = ssh2_connect('shell.example. Com', 22); ssh2_auth_password($sftp, 'username', 'password'); ssh2_scp_send($sftp, '/local/filename', '/remote/filename', 0644); sg2.php.net/manual/en/function.ssh2-scp-....
Ssh2_scp_send($connection, 'test1. Txt', 'foldername/test1. Txt', 777); I used this code.
But browser is loading n loading........... – user1122910 Mar 20 at 7:20 sorry should've been ssh2_scp_send($sftp, instead of $connection – NiftyDude Mar 20 at 7:23 Thanks Done....:) – user1122910 Mar 20 at 8:05.
For portability, I'd recommend using phpseclib, a pure PHP SFTP implementation. If you want to move to another server utilizing esoteric non-standard extensions like the PECL SSH2 one make doing so more difficult whereas phpseclib makes it pretty much plug and play.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.