首页
开发手册
应用中心
工具
用户中心
FoundPHP Download large Files
English
中文简体
English
上一篇
下一篇
### FoundPHP Download large Files FoundPHP can accept very large files, as well as download files. Usually downloading files is relatively simple, but if it is a large file, there will be problems. We need to solve a series of problems on how to transfer and how to store. We use system functions here to compare Simple implementation. Example: plugin/model/default.php ``` curl($web_file); //Store files $tpl->writer('new.rar',$data); echo 'download completed'; ?> ``` At this time, there will be a file `new.rar` in the root directory of the project. If there is no file in the original project address, an empty file will be written. You can make a judgment before writing. The function of set_time_limit is to prevent timeout when downloading, which can make the download of large files more continuous and ensure the integrity of the downloaded files.