Gumbo
Erfahrenes Mitglied
Probier mal Folgendes:
PHP:
<?php
ini_set('implicit_flush', true);
$file = 'readme_de.txt';
$byterate = 90.5;
if( is_readable($file) && $fd = fopen($file, 'r') ) {
header('Content-Type: application/octet-stream');
header('Content-Length: '.filesize($file));
header('Content-Disposition: attachment; filename="'.basename($file).'"');
while( !feof($fd) ) {
echo fread($fd, round($byterate*1024));
sleep(1);
}
fclose($fd);
}
?>