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