Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 26542

PHP file downloading always stop at 19.8 MB size

$
0
0

Hi

I have PHP 5.5 on IIS 7.5 and I have problem - downloading of file always stop at downloaded file size 19.8 MB (20 772 376 bytes), sometimes downloaded file has 35,6 MB (37 350 960 bytes).

File is downloaded through

readfile($file);
using example code from http://php.net/manual/en/function.readfile.php

I do not understand where is set the limit 19.8 MB. I already tried this

- Limit download speed to 50 or 100 kB/s, still 19.8 MB (so there is no problem with timeout somewhere).

- set <requestLimits maxAllowedContentLength="0" /> or to higher number than default 30000000, still 19.8 MB

- set in php set_time_limit(0); no change, I even set it to set_time_limit(10); (10 seconds) but downloading is working after 10 seconds

In log is this:

file.zip - 80 - Mozilla/4.0+(compatible;+Totalcmd;+Windows+7) 500 0 2147500037 120775
file.zip - 80 - Mozilla/4.0+(compatible;+Totalcmd;+Windows+7) 500 0 995 78

or

file.zip - 80 - Mozilla/4.0+(compatible;+Totalcmd;+Windows+7) 500 0 2147500037 194532
file.zip - 80 - Mozilla/4.0+(compatible;+Totalcmd;+Windows+7) 500 0 64 93

I don't understand why sc-win32-status is 2147500037

Thanks.


Viewing all articles
Browse latest Browse all 26542

Trending Articles


Practice Sheet of Right form of verbs for HSC Students


Sarah Samis, Emil Bove III


ZARIA CUMMINGS


Need radio code for IVECO Delphi Aptiv FJ5 RBT M16


Black Angus Grilled Artichokes


Ed Sheeran – Sapphire – Pre-Single [iTunes Plus M4A]


Sunny Garcia’s Ex-Wife Colleen McCullough


99 God Status for Whatsapp, Facebook


Funeral of Sir Warwick Franklin


MHDD



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>