Home > Backend Development > PHP Tutorial > Problem with downloading remote files in php

Problem with downloading remote files in php

WBOY
Release: 2016-09-03 00:14:10
Original
1092 people have browsed it

At first, I used curl to obtain it, which is definitely feasible. Then I found that fopen() can also write URLs, and later I found that readfile() seems to be able to do it too.

So I would like to ask which method is generally used to download files? What are the advantages and disadvantages of these methods?

Reply content:

At first, I used curl to obtain it, which is definitely feasible. Then I found that fopen() can also write URLs, and later I found that readfile() seems to be able to do it too.

So I would like to ask which method is generally used to download files? What are the advantages and disadvantages of these methods?

Related labels:
php
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