This question about the problem, still do not know how to ask ~ About Apache PHP
Source: Internet
Author: User
... This question, really do not know how to ask ~ ~ About Apache PHP
In an open-source platform, the system has an upload, download function
For download, it packs all the files into a zip archive and lets you download
When the single file is relatively small (1~2MB), I click "Download All Files" (100 files), the system can be normal to me to pack and download ~
However, when a single file is larger (5~10MB), when you click "Download all Files", the system seems to be unable to return the ZIP compression package
This is probably related to the configuration, right? Should we adjust those parameters?
By the way, the open source platform is (Moodle)
------Solution--------------------
Is it a local environment? is not the memory set too small
------Solution--------------------
Turn on the error function and read the newspaper what's wrong.
------Solution--------------------
Estimate Memory_limit not big enough, add this sentence to see.
Ini_set (' Memory_limit ', ' 128M ');
------Solution--------------------
1 Setting the memory size
2 Set the execution time size to avoid timeouts
------Solution--------------------
10M * = 1000M
PHP also needs work space
Working space is also required to compress files (general 1:1)
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