Ignore:
Timestamp:
Jun 13, 2013, 12:19:50 PM (11 years ago)
Author:
mistic100
Message:

replace readfile by readlargefile, add advanced parameter to use http redirection instead of php download

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/include/functions.inc.php

    r16592 r23167  
    101101}
    102102
     103// https://bugs.php.net/bug.php?id=61636
     104function readlargefile($fullfile)
     105{
     106  $fp = fopen($fullfile, 'rb');
     107
     108  if ($fp)
     109  {
     110    while (!feof($fp))
     111    {
     112      print(fread($fp, 2097152));
     113    }
     114
     115    fclose($fp);
     116  }
     117}
     118
    103119?>
Note: See TracChangeset for help on using the changeset viewer.