Memory Limit?
| From: | Jay Paulson | Date: | Fri, 19 Jan 2007 23:32:51 +0000 |
| Subject: | Memory Limit? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-247426@lists.php.net to get a copy of this message | ||
Hi everyone,
Quick question I¹m trying to increase the memory limit so that I can
upload larger files to an application I¹m running. I¹m using Apache¹s
resource .htaccess file to change PHP on the fly. Below is my .htaccess
file.
php_value memory_limit 30M
php_value post_max_size 25M
php_value upload_max_filesize 25M
php_value max_execution_time 300
However, when I try and upload a file I get the following error:
Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to
allocate 19590657 bytes) in /path/to/php/file on line 1000
I also have a small program that runs the memory_usage() to see what the
memory limit is set to and I get the following:
memory usage: 37512
I really don¹t know why I¹m getting the Fatal error. Do I need to do
something else that I just don¹t know about?
Thanks!
Jay