Allowed memory size of bytes exhausted (tried to allocate bytes) in php

  • 0

Just add this below line to before line of you getting error in your php or config file

ini_set('memory_limit', '-1');

 

Here are two simple methods to increase the limit on shared hosting:

If you have access to your PHP.ini file, change the line in PHP.ini If your line shows 32M try 64M:

memory_limit = 64M ;

If you don’t have access to PHP.ini try adding this to an .htaccess file:

php_value memory_limit 64M

Just add this below line to before line of you getting error in your php or config file ini_set(‘memory_limit’, ‘-1’);   Here are two simple methods to increase the limit on shared hosting: If you have access to your PHP.ini file, change the line in PHP.ini If your line shows 32M try 64M: memory_limit =…

Just add this below line to before line of you getting error in your php or config file ini_set(‘memory_limit’, ‘-1’);   Here are two simple methods to increase the limit on shared hosting: If you have access to your PHP.ini file, change the line in PHP.ini If your line shows 32M try 64M: memory_limit =…