Score:1

Changing the PHP memory limit in settings.php is not reflected in phpinfo()

cn flag

Of the various methods to increase the PHP memory limit, the only one I can use for a certain site is ini_set('memory_limit', 'XXXM'); in settings.php.

This value does not appear to change the memory_limit shown in phpinfo(). However, I know it is actually being modified because the site breaks without it.

Is there another way to view the current memory limit OR the actual memory limit ceiling?

4uk4 avatar
cn flag
You are probably calling phpinfo() before settings.php. What if you use the built-in phpinfo() linked in the Status Report? /admin/reports/status/php
Jaypan avatar
de flag
Also, some hosts may not allow you to change it above a certain amount.
cn flag
@4uk4 that's a great comment, can you pls put it as proper answer so I can tick it etc.?
Score:3
cn flag

You are probably calling phpinfo() before settings.php. What if you use the built-in phpinfo() linked in the Status Report?

http://www.example.com/admin/reports/status/php

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.