question about the php memory_limit

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
xtk
Forum Newbie
Posts: 10
Joined: Sat Aug 01, 2009 4:28 pm

question about the php memory_limit

Post 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
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: question about the php memory_limit

Post 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
Post Reply