Home >Backend Development >PHP Tutorial >php把上传的图片转发到另一台服务器,求高效解法?

php把上传的图片转发到另一台服务器,求高效解法?

WBOY
WBOYOriginal
2016-06-06 20:19:201589browse

php把上传的图片转发到另一台服务器,怎么拿上传过来的图片二进制流再去请求另一台服务器?

回复内容:

php把上传的图片转发到另一台服务器,怎么拿上传过来的图片二进制流再去请求另一台服务器?

在另外一台服务器上做接口,或者直接用ftp_connect函数进行上传

rsync

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn