title: PHP Memory limit not taking effect in normal php scripts
body: <p>I've assigned the memory limit of php to 999m so it appears in phpinfo like </p>
  
  <blockquote>
    <p>memory_limit   999M    999M</p>
  </blockquote>
  
  <p>when I use phpinfo(); to show it.</p>
  
  <p>Unfortunately when I try to run a fairly large script, it seems like the limit is 256M</p>
  
  <blockquote>
    <p>Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 40 bytes) in /xxx/wp-includes/wp-db.php on line 1403</p>
  </blockquote>
  
  <p>Anyone have any ideas why or what I can do to increase the limit (and have it actually work)</p>
  
  <p>If it helps I'm running centos5 32bit and with php running in fcgi mode</p>