- Forums
- PHP
- [SOLVED] PHP - Allowed memory size of bytes exhausted
i just solve an error i was getting on my php script. the error read as fatal error: allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in /home/www/html/includes/functions.php on line 345 [2115], Last Updated: Sun Jul 05, 2020
Sales
Mon Jun 04, 2012
0 Comments
434 Visits
hi, I just solve an error i was getting on my PHP script. the error read as:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in /home/www/html/includes/functions.php on line 345
so when i looked at line 345 i had a small function and this is what i had:
function TextClean($Text){
return TextClean($Text);
}
OK do you see what the problem was here. i kept the function on a loop,
If you are getting this error. it might also be that your script is too big to handle the script, you will need to edit you php.ini to increase the allowed memory in each script, but before you do that, of if you have done that already, its probably your script is in a loop. check your code