[*] FO: now you can download files >1G without running into max execution limitation

Added @ to suppress warning i safe mode.
This commit is contained in:
Gamesh
2013-12-09 15:04:16 +02:00
parent 9713d38078
commit 5c496f45a1
+1 -1
View File
@@ -279,7 +279,7 @@ class GetFileControllerCore extends FrontController
header('Content-Length: '.filesize($file));
header('Content-Disposition: attachment; filename="'.$filename.'"');
//prevents max execution timeout, when reading large files
set_time_limit(0);
@set_time_limit(0);
$fp = fopen($file, 'rb');
while (!feof($fp))
echo fgets($fp, 16384);