简体   繁体   中英

How to copy file over to server using phpseclib (SSH2)

I'd like to know how can I copy a file from localhost to the remote server using the phpseclib library? Which functions within the library would achieve this?

Check this example . if you use the latest version of phpseclib you should use SOURCE_LOCAL_FILE const instead of NET_SFTP_LOCAL_FILE.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM