PHP changes the maximum size of an uploaded file

Source: Internet
Author: User
Tags php file upload
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

  • 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.