memory_limit a> bir PHP komut dosyası kullanmak için izin bellek maksimum tutardır. Eğer daha fazla bellek yemek sayıda PHP komut dosyası yok, ya da daha kötüsü - Temel olarak, bu deli yapar ve tüm sunucu belleği tüketir bir PHP komut dosyası yok sağlamak için bir güvenlik yapılandırma seçeneğidir sunucu vardır.
This configuration directive can be set in the php.ini file ; it's the file that sets the configuration of PHP.
php.ini dosya sunucusu üzerinde nerede olduğunu öğrenmek için, phpinfo() function : somewhere near the top of the output, there should be a "Loaded Configuration File "seçeneğini kullanabilirsiniz.
Which value should be used for memory_limit is an interesting question... In the past, when we were only writting small script, 8MB was generally enough.
Şimdi, Çerçeveleri, büyük uygulamalar ORM, bir yapıda, ve tüm bu 8MB genellikle yeterli (as you obviously noticed) değil - ben genelde memory_limit {[ayarlanır (3)]} {olmadan, hemen hemen her zaman benim uygulamaları için yeterli benim üretim sunucularında [(4)]}.
Yani, benim php.ini dosyasında, var:
memory_limit = 32M
Note : it would be tempting to put a very high value for memory_limit, to just get rid of the problem... But remember that memory_limit is here as a security : you should make sure your server has enough memory to answer several requests at the same time !