网友通过本文主要向大家介绍了php readfile,readfile,readfile函数,internetreadfile,fs.readfile等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
PHP的readfile下载大文件时卡住
网上的解决方案很多,但都不是很完美。其实最重要的是:ob_end_clean()那句,请空缓冲区并且禁用了缓冲区。
- @set_time_limit(0);
- ini_set('memory_limit', '16M');
- ob_end_clean();
- @readfile( $path );
- This function discards the contents of the topmost output buffer and turns off this output buffering. If you want to further process the buffer
-- end --