First open the php.ini configuration file
Then make the following modifications
1, upload_max_filesize = 8m;
to allow uploading The maximum value of the file size
post_max_size = 8m;
refers to the maximum value that can be received by PHP through the form POST, including all values in the form. The default is 8M
2, max_execution_time = 600;
The maximum time value (seconds) for each PHP page to run, the default is 30 seconds
max_input_time = 600; The maximum time required for each PHP page to receive data, the default is 60 seconds
3, memory_limit = 8m;
Each The maximum memory occupied by the PHP page, the default is 8M
Just save the file at the end.
For more related articles and tutorials, please visit php Chinese website.
The above is the detailed content of How to modify the php upload file size limit. For more information, please follow other related articles on the PHP Chinese website!