To modify the php.ini file:
file_uploads on 是否允许通过HTTP上传文件的开关。默认为ON即是开upload_tmp_dir – 文件上传至服务器上存储临时文件的地方,如果没指定就会用系统默认的临时文件夹upload_max_filesize 8m 望文生意,即允许上传文件大小的最大值。默认为2Mpost_max_size 8m 指通过表单POST给PHP的所能接收的最大值,包括表单里的所有值。默认为8Mmax_execution_time 600 每个PHP页面运行的最大时间值(秒),默认30秒max_input_time 600 每个PHP页面接收数据所需的最大时间,默认60秒memory_limit 8m 每个PHP页面所吃掉的最大内存
To modify the nginx.conf file:
Client_max_body_size Request Body Buffer size
Client_body_buffer_size upload file maximum value
http { ...... client_max_body_size 30m; client_body_buffer_size 30m; ......}
Restart PHP and Nginx
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the setting of Nginx and PHP upload file size limits, including the content of uploading files, I hope that the PHP tutorial interested in a friend helpful.