首页 > 开发 > PHP > 正文

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

2024-05-04 21:56:38
字体:
来源:转载
供稿:网友

今天在运行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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表