Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

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...

Kimmo Laine

"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirvi
spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)  

Site Timeline