468,315 Members | 1,422 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,315 developers. It's quick & easy.

sftp

How do I use the ssh2 sftp file transfer? I'm used to using ftp_* functions,
but it seems that ftp_fput and such don't have equivalent ssh2_sftp_*
functions, so how do I upload a file to remote server using sftp? I'm
thinking that maybe it works something like I get a stream pointer from
ssh2_sftp and write to the stream using normal fwrite, etc functions? I
tried finding examples with google but with little luck. Ssh2_* not heavily
documented at php.net, that's a shame. I'd like to see some examples of it
being used if anyone could be so kind...

TIA,
Kimmo Laine

--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö
sp**@outolempi.net | Gedoon-S @ IRCnet | rot13(xv***@bhgbyrzcv.arg)
Feb 13 '06 #1
0 1500

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Gus M. Creces | last post: by
4 posts views Thread by Luke Vogel | last post: by
reply views Thread by Bernhard Günther | last post: by
reply views Thread by arkascha | last post: by
4 posts views Thread by sa6113 | last post: by
7 posts views Thread by K Viltersten | last post: by
2 posts views Thread by sivashanmugam | last post: by
1 post views Thread by ndedhia1 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.