Home > Backend Development > PHP Tutorial > Summary of PHP configuration parameters related to file upload_PHP tutorial

Summary of PHP configuration parameters related to file upload_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-21 15:06:22
Original
976 people have browsed it

I tried to upload pictures, but it didn't work. Later I found out that it was a problem with the PHP parameter configuration.
The following summarizes the php parameters related to file upload. Note~
All these parameters are set in php.ini.

1.file_uploads
Set to On to allow file uploads via HTTP

2.upload_tmp_dir
The directory used for temporary storage when files are uploaded to the server. If not specified, the system The default temporary folder will be used (/tmp on my machine).

3.upload_max_filesize
The maximum allowed upload file size, the default is 2M.

4.post_max_size
The maximum value of post data that Php can receive (including the sum of all values ​​in the form), the default is 8M.

5.memory_limit
The maximum amount of memory occupied by each php. This value must be greater than the file size allowed to be uploaded.

6.max_execution_time
The maximum time (seconds) for each php to run, the default is 30 seconds.

7.max_input_time
The maximum time (seconds) for Php to parse POST/GET data, the default is 60 seconds. This sets the maximum time in seconds a scripts is 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.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327620.htmlTechArticleI tried to upload pictures, but it didn’t work. Later I found out that it was a problem with the PHP parameter configuration. The following summarizes the php parameters related to file upload. Note~ All these parameters are set in php.ini...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template