PHP Upload file size is limited? Teach you how to change!

Source: Internet
Author: User
Tags domain name registration
1. Open php.ini

2. Find Post_max_size (the maximum number of form submissions, which is not to limit the size of individual files being uploaded, but to limit the submission data for the entire form); default is 8M, set to the value you want

3. Find the file uploads (switch to allow uploading of files over HTTP); Confirm file_uploads = On

4. Find Upload_tmp_dir (file upload to the server where temporary files are stored, if not specified will use the system default temporary folder); can be set to the directory you need

5. Find Upload_max_filesize (maximum allowable file size); default is 2M, set to the value you want

6. If you want to upload a file larger than 8M, you also need to set the following parameters:
Find max_execution_time = 600; maximum time value per php page (seconds), default 30 seconds
Max_input_time = 600; The maximum time required for each PHP page to receive data, default 60 seconds
Memory_limit = 8M; The maximum memory required for each PHP page, default 8M

7. Restart the Web server.




Hung Lun data (hlidc.com)--Professional website construction, website promotion, website record, domain name registration, cloud computing, server, VPS Host, Enterprise Post Office, 400 telephone and other enterprise informatization one-stop service

For more information, please Q23325308
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.