Common PHP. ini configurations

Source: Internet
Author: User
Tags temporary file upload
ArticleDirectory
    • 1. Language Configuration
    • 2. error message
    • 3. Resource restrictions
    • 4. Data Processing
    • 5. File Upload

Introduction: This is a detailed page of common PHP. ini configurations. It introduces the knowledge, skills, experience, and some PHP Source Code related to common PHP, PHP, ini php. ini configurations.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 347700 'rolling = 'no'>

Common PHP. ini configuration 1. Language Configuration

Short_open_tag = off; someProgramUsed <? ?> Short tag, which must be set to on

2. error message

Usually in the Development Environment
You need to set
Display_errors = on; error message displayed
Error_reporting = e_all; show all errors

(If you develop an open-source system twice, you can set it to error_reporting = e_all &~ E_notice | e_strict)

In the release Environment
Lower

Display_errors = off; no error message is displayed.

(Use the error log file to analyze the problem: error_log = "C: \ WINDOWS \ temp \ php-errors.log"; Error Log File Settings)

3. Resource restrictions

Max_execution_time = 30; the maximum execution time is 30 seconds. To perform complex file operations, you need to modify the time to 120.

Memory_limit = 128 M; Memory limit. If a large file size needs to be parsed, increase the memory allocation.

4. Data Processing

Default_charset = "UTF-8
"; By default, iso-8859-1 is typically set to UTF-8

5. File Upload

File_uploads = on; whether to allow File Upload
Upload_max_filesize = 2 m; maximum size of uploaded files for one request, which must be changed to 10 m
Max_file_uploads = 20; Maximum number of uploaded files per request
Upload_tmp_dir = "C: \ WINDOWS \ Temp"; Temporary File Upload directory

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/347700.html pageno: 3

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.