Php. ini

Source: Internet
Author: User
Php. in fact, it is an exaggeration to describe how to set a full strategy for ini. we only discuss several configurations that will affect our general development, if you have other questions, let the server administrator do it. we are not a network administrator and don't have to worry about them. is it always necessary to make some work for them? Extension_dir = "/php. ini full Guide
The overall strategy is an exaggeration. we only discuss several configurations that will affect our general development, if you have other questions, let the server administrator do it. we are not a network administrator and don't have to worry about them. is it always necessary to make some work for them? Extension_dir = "/path/to/php" to store the Directory of the extension Library (module), that is, PHP is used to find the Directory of the dynamic extension module, this is usually the ext directory under the php installation directory (the file name may be different before php5). This directory stores a lot in PHP for windows. dll files such as php_gd2.dll and php_mysql.dll are very important to us. Modify the path according to the correct path. generally, write the absolute path, for example, d: \ php5 \ exterror_reporting = E_ALL &~ E_NOTICE: Set the error report Level. we recommend using E_ALL | E_STRICT, which includes all the errors warned by standard code. This will help us write standardized code at the beginning ...... For more information about error reports, see display_errors = On. if it is set to On, the error report is displayed. if it is set to Off, even if the error report level is set, you cannot see the error message. As a programmer, there is no more headache than knowing that the program has a problem. Max_execution_time = 30 allows a single program script to take up the maximum time of the server, in the unit of seconds, so as to avoid inadvertently writing an endless loop or program, occupying the server for a long time and exhausting the server. If the value is set to 0, the running time is not limited. Memory_limit = 16 m maximum memory size that can be occupied by a single program script. If this parameter is set to-1, max_input_time =-1 indicates that the input data is parsed by a single script (POST, GET, upload) the maximum allowed time (in seconds) of. if it is set to-1, it indicates no limit. Post_max_size = maximum size of the POST data in 8 MB. This setting also affects file upload. To upload a large file, the value must be greater than the value of the upload_max_filesize command. If the memory limit is enabled, the value should be smaller than the value of the memory_limit command. Upload_max_filesize = the size of the files that can be uploaded at 2 MB. the default value is 2 MB. to upload files larger than 2 MB, modify the values of memory_limit and post_max_size. Upload_tmp_dir = temporary directory for storing files during File upload. this directory must be writable for PHP processes, if this parameter is not specified, PHP uses the system's default temporary directory magic_quotes_gpc = On to determine whether to use automatic string escaping ('"\ NULL) for the input GET/POST/Cookie data, which is generally set to On, however, in the actual programming environment, do not rely on this setting. Generally, you need to determine and process the data. check the code ...... If (! Get_magic_quotes_gpc () {// determines whether the setting is On $ lastname = addslashes ($ _ POST ['lastname']); // not manually escaped On} else {$ lastname = $ _ POST ['lastname']; // otherwise, use it directly }...... Register_globals = Off: the setting that has been deleted in PHP6. I will not talk about it anymore. Be sure to set it to Off! The [mbstring] module is an extension of dubyte characters such as Chinese, Korean, and Japanese. The following settings are usually disabled. if you want to enable these extensions, remove the previous ";". However, these settings are a little too Personalized. we recommend that you do not set them properly. if you encounter Chinese interception or length measurement, you just need to find a program written by someone else on the Internet. Mbstring. language = "neutral" default value "neutral" indicates neutral, equivalent to unknown, "zh-cn" or "Simplified Chinese" indicates Simplified Chinese, "zh-tw" or "Traditional Chinese" indicates Traditional Chinese ...... I don't want to talk about the rest. if you really need it, let's talk about it. you can contact me or go to the group number posted on the right of the homepage to ask. Enable extension = php_gd2.dll for the extension module instance, enable the gd library extension, extension = php_mysql.dll for generating images, and enable Mysql database extension. only when PHP is enabled can it be connected to the Mysql database, remove the semicolon from the front of the two rows (or directly add the two rows to the ini settings) to enable the semicolon. It's over! In this case, we may also use some settings, such as the session directory, session prefix, and so on ...... Let's study it by yourself!

Http://www.phpiask.com /? P = 37

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.