Home  >  Article  >  php教程  >  Fatal error: Out of memory (allocated 786432)提示解决办法

Fatal error: Out of memory (allocated 786432)提示解决办法

WBOY
WBOYOriginal
2016-05-25 16:52:212095browse

今天在运行phpmyadmin时页面突然出现了Fatal error: Out of memory (allocated 786432)提示,看英文的意思是说超过了指定内存大小了,错误提示:

Fatal error: Out of memory (allocated 786432) (tried to allocate 393216 bytes) in E:xxxxlibrariescommon.lib.php on line 3135

解决办法

一,在你程序页面加入如下代码:

ini_set('memory_limit',"256M")

二,在php.ini中修改,打开php.ini修改:

memory_limit = 1024M

依照服务器配置进行调整配置的内存使用大小修改后重启iis/apache

永久地址:

转载随意~请带上教程地址吧^^

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