I followed the teacher's video encapsulation to download the function library. But cannot download
善為
善為 2019-02-21 13:47:18
0
2
993
function dow_file($filename){
    header('Accept-Length:'.filesize($filename));
    header('Content-Disposition:attachment;filename='.basename($filename));
    readfile($filename);
}
dow_file('www.zip');

The www.zip file under this file exists. And the directory is correct.


#But the page that opens is blank. Even now it's a picture. It is also parsed in a garbled format.

Could you please ask the teacher if there is any extension function that needs to be opened?

F2EAF56A-0E5C-493E-97B9-D702DA24AE57.png



善為
善為

reply all(1)
Peter-Zhu

If the page is blank, you need to check whether the data in your returned response body is correct

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template