PHP changes the maximum size of an uploaded file
?
1. Open the php.ini file under Windows
2. Find max_execution_time=30, change to max_execution_time=0,0 to indicate no limit
3. Find upload_max_filesize=2m and change to upload_max_filesize=100m, which means that the maximum number of files that can be uploaded is 100M
4. Modify post_max_size=150m, the default is 8m,post_max_size to indicate the maximum limit of packets
?
PHP File Upload Configuration
File_uploads
Sets whether the file is allowed to be uploaded over HTTP, the default value is on
?
Upload_tmp_dir
Set temporary directory when uploading files over HTTP, if empty, use the temp directory of the system
?
Upload_max_filesize
Set the size of the allowed upload file, such as 50M
?
Post_max_size
Sets the maximum allowable capacity for post data. To upload a large file, the value must promise upload_max_filesize settings
?
Article in the Independent blog address: http://www.fsech.com/code/php/3.php