Coder
Coder

Reputation: 33

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?

Upvotes: 0

Views: 2458

Answers (1)

pazzleBob
pazzleBob

Reputation: 86

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

Upvotes: 1

Related Questions