I really don't know how to ask this question ~ About apachephp

Source: Internet
Author: User
Tags apache php
... I don't know how to ask this question ~~ Apachephp is using an open-source platform. this system provides the upload and download functions, it will package all the files into a zip package, and then let you download when a single file is relatively small (1 ~ 2 MB). when I click "Download All Files" (100 files), the system can still pack and download the files for me ~ However, when a single file is large (5 ~ 10 MB). when you click "Download All Files", the system looks like it will return... this question, I really don't know how to ask ~~ About apache php
Using an open-source platform, this system provides the upload and download functions.
For download, it will package all the files into a zip package and then let you download
When a single file is small (1 ~ 2 MB). when I click "Download All Files" (100 files), the system can still pack and download the files for me ~
However, when a single file is large (5 ~ 10 MB). when you click "Download All Files", the system does not seem to be able to return the zip package.

This may be related to the configuration, right? Which parameters should be adjusted?
By the way, the open-source platform is (moodle)
------ Solution --------------------
Is it a local environment? Is the memory set too small?
------ Solution --------------------
Enable the error prompt function to check whether an error is reported.
------ Solution --------------------
It is estimated that memory_limit is not large enough. add this sentence.

Ini_set ('memory _ limit ', '128m );
------ Solution --------------------
1. set the memory size.
2. set the execution time to avoid timeout.
------ Solution --------------------
10 M * 100 = 1000 M
Php also requires a workspace
Compressing a file also requires a certain amount of workspace (generally)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.