Home >Backend Development >PHP Tutorial >php error Fatal error: Out of memory (allocated 262144)_PHP tutorial

php error Fatal error: Out of memory (allocated 262144)_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:56:591518browse

Yesterday, while using the website, it prompted Fatal error: Out of memory (allocated 262144). Later, Baidu searched for some solutions. I will share them with all my friends below.

From the above Out of memory (allocated 262144), it can be seen that it exceeds 256MB. We only need to adjust a reference in php.ini for this

The solution is to modify php.ini and increase memory_limit

Modify php.ini

The following areas

memory_limit = 64M 
The code is as follows
 代码如下 复制代码

memory_limit = 64M    

Copy code

Restarting apache can solve the problem. http://www.bkjia.com/PHPjc/632135.htmlwww.bkjia.comtrue
http: //www.bkjia.com/PHPjc/632135.html
TechArticle
Yesterday when I was using the website, it prompted Fatal error: Out of memory (allocated 262144). Later, I searched some on Baidu I will share the solution with you below. Out of memo from above...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn