upload_max_size vs. post_max_size

From: Date: Fri, 10 Nov 2000 06:33:15 +0000
Subject: upload_max_size vs. post_max_size
Groups: php.general 
Request: Send a blank email to php-general+get-24628@lists.php.net to get a copy of this message
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 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 and upload_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"

« previous php.general (#24628) next »