Php solution for downloading remote files to space

Source: Internet
Author: User
It is very difficult for php to download remote files to the space to upload files. I want to use php to write a file in the space and directly download the file that has been uploaded to another space on the server, which can save the upload time, manually upload the changed file to complete the upload of the entire website. Is there a solution ?, File_get_contentsfile_put_contents can be implemented using these two functions. $ Fi php downloads remote files to space
It is very hard to upload files. I want to use php to write a file and put it in the space. directly downloading the file that has been uploaded to another space on the server can save the upload time, manually upload the changed file to complete the upload of the entire website. Is there a solution?

------ Solution --------------------
File_get_contents
File_put_contents
You can use these two functions.

$ File = file_get_contents (address and file name)
File_put_contents (save address and file name, $ file)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.