首页
开发手册
应用中心
工具
用户中心
FoundPHP Download large Files to Show Progress
English
中文简体
English
上一篇
下一篇
### FoundPHP Download large Files to Show Progress Usually when we download files, we want to display the progress bar, always a blank screen, and we can see the results when the data is over. In order to solve this problem, our download application in the framework is a download solution using the curl method. Realize the progress bar. Sample Code: ```
show curl download progress
download
0){ $file_size = $down; $down = $down1; } if(!empty($down)){ $progress = round(($down/$file_size)*100,2); if ($progress>0 && $progress<=100){ echo ""; ob_flush(); flush(); } } } ?> ``` Realize the effect: ![](data/files/edit/21/06/21/210621_12101587.png)