Problems caused by ini_set (memory_limit, 128 M) and php. inimemory_limit
When running the PHP program, the Error "Fatal Error: Allowed memory size of xxxxxx bytes exhausted" usually occurs. This means that the PHP script uses too much memory,
PHP explains how to modify the memory_limit memory limit. Today, I installed the php environment on my new server, but the error "FatalError: Allowedmemorysizeofxxxxxxbytesexhausted" is displayed at runtime. the memory is insufficient, next, I will
Today, my new server has installed the php environment, but the error "FatalError: Allowedmemorysizeofxxxxxxbytesexhausted" is prompted at runtime, which is due to insufficient memory.
Today, I have installed the php environment on my new server,
Method 1: Modify the related parameters of php. ini: file_uploadson; enable or disable file upload over HTTP. The default value is ON, which is to open upload_tmp_dir. The file is uploaded to the place where the temporary file is stored ON the
This article mainly introduces about how to modify PHP memory_limit restrictions, has a certain reference value, now share to everyone, the need for friends can refer to
When running a PHP program, you will typically encounter an error "Fatal error:
In the php file upload operation, you need to know how to control the upload file size settings, and file size is constrained by a variety of factors, now summarized as follows: 1,php.ini:upload_max_filesize The maximum size of the uploaded files.
To solve this problem, first check whether your program has allocated too much memory. If there is no problem with the program, you can use the following method to increase the memory limit (memory_limit) of PHP ).
Check the php memory limit
When running a PHP program, you usually encounter the error "FatalError: Allowedmemorysizeofxxxxxxbytesexhausted". This means that the PHP script uses too much memory and exceeds the maximum memory allowed by the system. When running the PHP program,
Modify the memory_limit limit of PHP in three ways. Memory_limit is php. an important parameter in ini, which can limit the maximum memory usage of php. if it is small, the system prompts FatalError: Allowedmemo memory_limit is php. an important
In Running a PHP program, you will typically encounter the "Fatal error:allowed memory size of xxxxxx bytes exhausted" error, which means that the PHP script uses too much memory and exceeds the maximum allowable memory set by the system.
To solve
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.