title: Where else can you specify memory limits in PHP?
body: <p>I'm getting a common error:</p>
  
  <pre><code>Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 1369 bytes)
  </code></pre>
  
  <p>However I've set my memory limit to 512MB in my php.ini, my .htacess and at the beginning of my file with ini_set('memory_limit', '512M');</p>
  
  <p>Shouldn't the allowed memory size in the error message be much higher than 0.25MB? Is there some place else that might be overriding this setting?</p>