Search code examples
phpfilesendtransferput

PHP to transfer (SEND) file to another Server?


In PHP, i know only how to get the files.
But now i don't know how to do with followings:

  • How can i distribute/ send/ transfer the files onto another owned Server?
  • Just to send from the host server. NOT the way to get from the target server.

Please suggest if you know.


Solution

  • Use curl, it support POST http method (if you receive file from html form), and ftp methods (if you had setup ftp server).