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

Problem with downloading remote files in php

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-09-03 00:14:10
Original
1132 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
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template