FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP - Solve PHP Fatal error: Allowed memory size of 8388608






You want your own server and me to help?
Yes
50%
 50%  [ 1 ]
No
50%
 50%  [ 1 ]
If i need something i'll search for it !!!
0%
 0%  [ 0 ]
Total Votes : 2

gidevelop
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

Code:
ini_set("memory_limit","12M");
. 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.

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.
Related topics
Fatal PHP error
www.poxyproxy.com is BACK!!!- Access blocked sites@school
Fatal error: Allowed memory size of 8388608 bytes exhausted
MySQL backup, cant find where to load them
fatal error
gallery2
quicksilver Forum Install problem
increase php memory size please
after installing drupal memory error
after installing drupal memory error
Ca't retreive email via webmail (Fatal error:Allowed memory)
PHP'de bir sorunum var..
" Fatal error: Allowed memory size of 52428800" bl
Fatal error Allowed memory size of 268435456 bytes exhausted
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.