开发者

PHP Memory Exhausted Error

开发者 https://www.devze.com 2023-03-03 04:40 出处:网络
I know this might sound very stupid but I am a total noob in programming and I am very frustrated about this error.

I know this might sound very stupid but I am a total noob in programming and I am very frustrated about this error.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 7059335 bytes) in C:\TOM Files\wamp\www\program_exer_1\index.p开发者_如何学Chp on line 2

I want to know what it means and what are the possible solutions for this. Please help.


Try increasing the memory limit of PHP either in php.ini if you have access by editing the following line:

memory_limit = 128M

Or by adding this line to specific scripts:

ini_set("memory_limit","128M");


I've seen this caused in several occasions by corruption in MySQL tables. How that causes this particular fault, I have no idea. But just for good measure, you may want to check and repair your MySQL db.

mysqlcheck -rA
0

精彩评论

暂无评论...
验证码 换一张
取 消