Uploading large files with PHP
1. First we need to open the php.ini file
2. file_uploads = on; Switch whether to allow file upload via HTTP. The default is ON, as shown below:
##3. upload_max_filesize = 8m; as shown in the transaction, That is, the maximum allowed upload file size, the default is 2M. post_max_size = 8m, refers to the maximum value that can be received through form POST to PHP, including all values in the form, the default is 8M
Generally, after setting the above three parameters , uploading 8M, it will definitely work if you only set the above three items.
##4. 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
Recommended tutorial:
The above is the detailed content of How to upload large files in PHP. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version
Chinese version, very easy to use

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software
