Modify PHP Upload file size, response time, time zone and other settings

Source: Internet
Author: User
Tags form post

Modify PHP Upload file size, response time
1. Modify PHP.ini
1, post_max_size refers to the form post to PHP can receive the maximum value, including all the values in the form, the default is 8M (to 150M), see you need to change.
2, first confirm file_uploads = on whether to allow the upload of files via HTTP switch, the default is on is open.
Upload_tmp_dir upload the file cache directory via HTTP, check whether it can be written;
Finding upload_max_filesize is the maximum size allowed for uploading files. The default is 2M (change to 100M).
3, if you want to upload >8m files, then only set the above four items can not be certain. It is best to set the following parameters as well:
Max_execution_time the maximum time value (in seconds) to run per PHP page, the default is 30 seconds (change to 0, no limit).
Max_input_time the maximum time required for each PHP page to receive data, the default is 60 seconds (change to 0, no limit).
Memory_limit the maximum memory eaten per PHP page, the default 8M (128M, unlimited).

Time zone
The first approach: set in php.ini: Date.timezone=asia/shanghai (note not to add single or double quotes)
The second approach: Ini_set in the program (' Date.timezone ', ' Asia/shanghai ');

Modify PHP Upload file size, response time, time zone and other settings

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.