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