Mufleeh Posted July 10, 2011 Share Posted July 10, 2011 Hi, I am using queries in PHP to search data from the database in my local pc. Below error is being repeated even after increasing the memory limit from 128M to 256M in PHP configure file. Please advice me the way to fix this? Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 39 bytes) in C:\Program Files\BitNami WAPPStack\apache2\htdocs\census\includes\school.php on line 1131 Regards, Mufleeh Quote Link to comment https://forums.phpfreaks.com/topic/241543-mememory-size-error/ Share on other sites More sharing options...
PaulRyan Posted July 10, 2011 Share Posted July 10, 2011 Your script is using all the Memory you've allowed it, you should try to optimize your script to use less Memory. Try to combine queries to the database to lessen the load, cannot give any other tips until some code is shown Regards, PaulRyan. Quote Link to comment https://forums.phpfreaks.com/topic/241543-mememory-size-error/#findComment-1240715 Share on other sites More sharing options...
darkfreaks Posted July 10, 2011 Share Posted July 10, 2011 have you tried using a PHP accelerator like memcache http://www.search-this.com/2007/07/24/an-introduction-to-memcached/ Quote Link to comment https://forums.phpfreaks.com/topic/241543-mememory-size-error/#findComment-1240718 Share on other sites More sharing options...
Mufleeh Posted July 10, 2011 Author Share Posted July 10, 2011 Your script is using all the Memory you've allowed it, you should try to optimize your script to use less Memory. Try to combine queries to the database to lessen the load, cannot give any other tips until some code is shown Regards, PaulRyan. Hi, I sent you a PM thinking you would see it soon! Regards, Mufleeh Quote Link to comment https://forums.phpfreaks.com/topic/241543-mememory-size-error/#findComment-1240735 Share on other sites More sharing options...
Mufleeh Posted July 10, 2011 Author Share Posted July 10, 2011 have you tried using a PHP accelerator like memcache http://www.search-this.com/2007/07/24/an-introduction-to-memcached/ Than darkfreaks, Let me check this... Quote Link to comment https://forums.phpfreaks.com/topic/241543-mememory-size-error/#findComment-1240736 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.