--- C:/Users/bronek/AppData/Local/Temp/files.inc-revBASE.svn000.tmp.inc Wed Jul 15 00:41:25 2009 +++ D:/bro/websites/wielkapolandia/trunk/sites/all/modules/contributions/[backup]/backup_migrate/includes/files.inc Wed Jul 15 00:40:49 2009 @@ -331,9 +331,12 @@ $header = preg_replace('/\r?\n(?!\t| )/', '', $header); drupal_set_header($header); } - // Transfer file in 1024 byte chunks to save memory usage. - while ($data = $this->read(1024)) { - print $data; + // Transfer file in 1024*8 byte chunks to save memory usage. + while ($data = $this->read(1024*8)) { + set_time_limit(0); // reset time limit for big files + print $data; + flush(); + ob_flush(); } $this->close();