Home  >  Article  >  Backend Development  >  PHP upload file size limit_PHP tutorial

PHP upload file size limit_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:45:34774browse

Configure the php.ini file (taking uploading files below 500M in size as an example)
Find the following options and modify ->
file_uploads = On; turn on the file upload option
upload_max_filesize = 500M; upper limit of uploaded files


If you want to upload a relatively large file, the above two are not enough. You must increase the server cache limit and lengthen the maximum execution time of the script
post_max_size = 500M; post upper limit
max_execution_time = 1800 ; Maximum execution time of each script, in secondsMax_input_time = 1800 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume ( 128MB) memory limit

http://www.bkjia.com/PHPjc/320319.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/320319.htmlTechArticleConfigure the php.ini file (take uploading files below 500M in size as an example) Find the following options and modify them - file_uploads = On ;Open the file upload option upload_max_filesize = 500M ;Upload files on...
Statement:
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