Page 1 of 1

question about the php memory_limit

Posted: Tue Aug 04, 2009 3:42 am
by xtk
in my php.ini, memory_limit = 24M

would the value 24 be considered a buffer (perhaps every second)?

and if someone could please explain what the memory limit actually means would be most helpful

also, is there any way to check, what the max memory limit of the system is? or a command to allow the system to use as much as it can?

regards

Re: question about the php memory_limit

Posted: Tue Aug 04, 2009 4:05 am
by Eran
that is the memory limit allocated per PHP running process on the webserver. if that limit is exceeded before the process ends, a fatal error (memory limit exceeded..) would be thrown. To have no memory limit (aside from the system memory) set this value to -1. Read more in the manual (scroll down a bit) - http://www.php.net/manual/en/ini.core.php