File Downloads
Last Modified: May 14, 2005 09:05AM
|
|
(Any)
|
Description
PHP has several variables that can affect the size of file you can upload. They can't be adjusted from within a program, but must be set in the php.ini file. The exact location idependent on how your version of PHP was compiled. There are upload_max_file_size, and post_max_size. Further, because of the size of the file being moved, the program may need to run longer (by changing max_execution_time or memory_limit settings).
Finally, if you are storing the files in the database, the database itself may need tuning. In MySQL, the max_allowed_packet setting will also probably need to be changed.
The display for max size in the file upload pages is the minimum of $g_max_file_size, php's upload_max_file_size, and php's post_max_size.
For 5M files, I'd set $g_max_file_size, php's upload_max_file_size, php's post_max_size and MySql's max_allowed_packet to 5M. I'd also consider setting php's max_execution_time to 60 seconds and memory_limit to 32M.
|
User Contributed Notes File Downloads |
|
ravikumarece25@rediffmail.com 10-Apr-2006 4:31 |
#989
|
| pls forward the link |
|
|
| Last updated: Wed, 20 Aug 2008 - 4:25:32 |
|
|