Loading PHP with large files (no errors)

I am using Xampp (on win 2003 server) and I have provided both PHP and Apache to boot with a 6 GB limit and no time limit for waiting for system processes. When I try to publish a form with a downloaded file above ~ 1.8 GB, it waits until 100% is loaded, and then updates the form with an empty field. There are no error messages, no routing to form the landing page - the same page from scratch.

Is there a hidden limitation or limitation of the file system that does this? If so, could you suggest a better (free) download method for PHP?

Thanks in advance, Mark.

Edit: 2 GB limit is not 1.8 GB

+1
source share
1 answer

To download gigabytes, consider writing a web server module. It seems like common sense to go ... And do everything 64-bit, just to be sure.

I had no idea that PHP could accept such large downloads. I never relied on this to handle such things. And I don’t know if PHP can handle GB sizes correctly ... with its support of 64 bits (it uses 32 bits) for integers ...

I'm just guessing here. I would write a server module for tasks that will handle downloads exactly as I wanted them.

+1
source

Source: https://habr.com/ru/post/1442747/


All Articles