Configure the php.ini file (for example, 500M files of the following size)
Look for the following options and modify
File_uploads = on; open File upload option
upload_max_filesize = 500M; upload file limit
If you want to upload larger files, only the above two are not enough, you must increase the server cache limit, the maximum execution time of the script is longer
Post_max_size = 500M;p ost Upper
max_execution_time = 1800; Maximum execution time of each script, in seconds script maximum execution times
max_input_time = 1800; Maximum amount of time each script may spend parsing request data
Memory_limit = 128M; Maximum amount of memories a script may consume (128MB) memory limit
The above is introduced in the first year of human teaching edition of the language courseware PHP upload file size limit, including the person to teach edition of the Chinese courseware content, I hope that the PHP tutorial interested friends have helped.