how to fix out of memory problem?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lukelee
Forum Commoner
Posts: 28
Joined: Wed Sep 10, 2008 2:03 am

how to fix out of memory problem?

Post by lukelee »

guys, i always got this message:

Fatal error: Out of memory (allocated .....

i heared this is php bug, but how to solve this problem?

my server information is:

Hosting package Advance w Full access
Server Name intrigue
cPanel Version 11.23.6-STABLE
cPanel Build 27698
Theme x3
Apache version 2.2.10 (Unix)
PHP version 5.2.8
MySQL version 5.0.51a-community
Architecture i686
Operating system Linux
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

Re: how to fix out of memory problem?

Post by novice4eva »

Something in your program is eating up memory resource. It is not a bug, it would have been if it didn't gave any error even when the memory limit were exceeded. Search for the term memory_limit in php.ini, it would be set to default value of 8MB, try changing this to some greater value. You should also check in the code and try figuring out what is taking up the resource.
Post Reply