>> Hi everyone, >> >> Hopefully you all can help! I¹m at a loss as to what to do next. I¹m >> running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the >> following PHP error when trying to upload a larger file. I have >> AllowOverride turned on in the httpd.conf file so my .htaccess file is below >> as well. When I look at phpinfo() it reflects the changes in the .htaccess >> file but yet still I get the following PHP fatal error. Anyone have any >> ideas what could be going on? Could it be the Zend Memory Manager >> (something that I know nothing about)? Or anything else I may not be aware >> of? >> >> Any help would be greatly appreciated! >> >> >> Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to >> allocate 19590657 bytes) in /path/to/php/file on line 979 >> >> LimitRequestBody 0 >> php_value memory_limit 40M >> php_value post_max_size 30M >> php_value upload_max_filesize 30M >> php_value display_errors On >> php_value max_execution_time 300 >> php_value max_input_time 300 > > php_value can't overrule a php_admin_value (your apache conf or another > .htaccess > maybe setting these ini settings usiong php_admin_value). > > check that the php ini settings you've got in your .htaccess are > actually being honored: > > foreach (array('memory_limit','post_max_size','upload_max_filesize') as $ini) > echo ini_get($ini),'<br />'; > I ran the foreach like you have and the values came back with the ones I'm using in my .htaccess file. I couldn't find any occurrences of php_admin_value used any where. Hm. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php