Bugfix - Zipdownload funktioniert nun auch bei größeren Zip-Files

This commit is contained in:
Andreas Österreicher
2010-08-26 07:50:49 +00:00
parent 7ec102bb8a
commit e923468584
+10 -1
View File
@@ -308,7 +308,16 @@ else
{
header('Content-Type: application/octet-stream');
header('Content-disposition: attachment; filename="Abgabe_'.$s->kuerzel.'.zip"');
echo file_get_contents($zipausgabe);
$handle = fopen($zipausgabe, "rb");
while (!feof($handle))
{
echo fread($handle, 1024);
}
fclose($handle);
//echo file_get_contents($zipausgabe);
unlink($zipausgabe);
}
else