Home > Backend Development > PHP Tutorial > 请教PHP如何下载远程服务器上的文件到本地服务器上

请教PHP如何下载远程服务器上的文件到本地服务器上

WBOY
Release: 2016-06-13 12:07:39
Original
2826 people have browsed it

请问PHP怎么下载远程服务器上的文件到本地服务器上?
我做了个中间服务器,专门用来生成各种报表文件,请问PHP怎么下载远程服务器上的文件到本地服务器上?
------解决思路----------------------
如果要使用php脚本来实现的话,可以用php自带函数file_get_contents,或者使用工具wget
------解决思路----------------------
文件大吗?不大的话,直接file_get_contents 然后保存即可,

大的话,建议用组件

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template