Newbie Coder
Newbie Coder

Reputation: 10942

PHP Memory Exhausted 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.php on line 2

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

Upvotes: 0

Views: 618

Answers (2)

tylerl
tylerl

Reputation: 30847

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

Upvotes: 1

Kit
Kit

Reputation: 4105

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");

Upvotes: 1

Related Questions