Win, Mac set PHP upload file size limit

Source: Internet
Author: User

Modify PHP.ini

Win Platform Wamp Modification

    • Steps

      • Left clickwamp
      • Choosephp
      • In the pop-up window, selectphp.ini
      • Make changes in the open file (modify the steps below)
      • Change complete, Save and restartwamp

Mac MAMP

Steps

File------Edit Template-------PHP

Choose your own version to

Modify Content

Use the search function of the text Editing tool to find the following options to modify

    • Set file maximum upload limit (value can be modified according to the requirements)
file_uploads = On   32M       ; 上传文件的最大限制post_max_size = 32M             ; 通过Post提交的最多数据
    • Consider the network transmission speed, here to modify some parameters
30000      ; 脚本最长的执行时间 单位为秒max_input_time = 600            ; 接收提交的数据的时间限制 单位为秒memory_limit = 1024M            ; 最大的内存消耗

Win, Mac set PHP upload file size limit

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.