|
|||||||||||||||||||||||||||||||
PHP - Solve PHP Fatal error: Allowed memory size of 8388608
There are 2 diferent ways.
1) when you don't own the server but you still want to run a complex script which eats a lot of memory so ol you gotta do is to place the script below in your firt page of your php site, in index.php for example after the <?php
. I supose that is a large inconvenient for the host of that user... But dear beloved that are frihost users, you don't need this. If insted of 8388608 you get something like 112288608 there MUST be something wrong with your code.
2) when you are the owner of the server just paste the code below in your php.ini file under requirements section of it.
By the way 12M is not bolted in the wall you can change it... if you are well grown you will use 18M max.
1) when you don't own the server but you still want to run a complex script which eats a lot of memory so ol you gotta do is to place the script below in your firt page of your php site, in index.php for example after the <?php
| Code: |
| ini_set("memory_limit","12M"); |
2) when you are the owner of the server just paste the code below in your php.ini file under requirements section of it.
| Code: |
| memory_limit = 12M |
By the way 12M is not bolted in the wall you can change it... if you are well grown you will use 18M max.
