FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a 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.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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