Summary of PHP configuration parameters related to file upload _php tips
Source: Internet
Author: User
Get a picture upload, anyway, later found to be PHP parameter configuration problem.
The following summary with the file upload related PHP parameters, Memo ~
All of these parameters are set in php.ini.
1.file_uploads
Set to on to allow uploading of files over HTTP
2.upload_tmp_dir
The directory used for temporary storage when files are uploaded to the server, and if not specified, the default temporary folder is used (my machine is/tmp).
3.upload_max_filesize
The maximum size allowed for uploading files, the default is 2M.
4.post_max_size
The maximum number of post data that PHP can receive (including the sum of all the values in the form), and the default is 8M.
5.memory_limit
The maximum amount of memory per PHP, which is larger than the file size that is allowed to be uploaded.
6.max_execution_time
Maximum time per php run (seconds), default 30 seconds.
7.max_input_time
Maximum time (in seconds) that PHP parses post/get data, default 60 seconds. This sets the maximum time in seconds a scripts are allowed to parse input data, like POST and get. It is measured from the mement of receiving all data on the server to the start of script execution.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service