Download File to server from URL

后端 未结 12 1409
旧巷少年郎
旧巷少年郎 2020-11-22 04:05

Well, this one seems quite simple, and it is. All you have to do to download a file to your server is:

file_put_contents(\"Tmpfile.zip\", file_get_contents(\         


        
12条回答
  •  野性不改
    2020-11-22 04:34

    There are 3 ways:

    1. file_get_contents and file_put_contents
    2. CURL
    3. fopen

    You can find examples from here.

提交回复
热议问题