Fwd: [PHP] upload_max_size vs. post_max_size
| From: | Andi Gutmans | Date: | Fri, 10 Nov 2000 08:25:46 +0000 |
| Subject: | Fwd: [PHP] upload_max_size vs. post_max_size | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37653@lists.php.net to get a copy of this message | ||
Is it really that necessary to have the two of them? Can't there be a comment next to post_max_size noting that this effects file uploads too?
Andi
Date: Fri, 10 Nov 2000 00:33:15 -0600 From: Micah Anderson <micah@colltech.com> To: php-general@lists.php.net Reply-To: micah@colltech.com User-Agent: Mutt/1.2i Subject: [PHP] upload_max_size vs. post_max_size People use POST on a php page that I maintain - sometimes up to 100meg files (and boy does that take a while)... I previously had to set upload_max_size in php.ini for it to work correctly, but I recently upgraded to the 4.0.3pl1 and quickly the complaints came in - uploads larger than 8MB weren't going through. I checked my upload_max_size, it was still set. I did some searching on www.php3.com and found someone saying: On my system (Solaris 7/SPARC, Apache 1.3.9), in order to be able to--- Andi Gutmans <andi@zend.com> http://www.zend.com/upload files larger than 8 MB, you need to increase the memory_limit in php3.ini to a value larger than 8 MB.For example, if MAX_FILE_SIZE is set to 209715199 in your form andupload_max_filesize is set to 209715200 in php3.ini, the largest file that can be uploaded is 7996 kilobytes or about 8 MB. Increasing the memory_limit (I increased mine to 100 MB) allows me to upload files that are up to 100 MB in size.So I changed that - but that didn't work. Then I took a look at my PHP core and found the NEW variable: post_max_size and it was set to 8MB. I changed that to 100mb and now it works. But there is NO documentation available ANYWHERE about what post_max_size is, or how it is different from upload_max_size, and should I have memory_limit set higher too? Should I just have post_max_size set? Or should I have both, or all three? What is the difference? Where is the documentation?! Micah -- Micah Anderson Collective Technologies www.colltech.com "To be and not to do is not to be at all" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net