PHP. ini configuration details

Source: Internet
Author: User
Tags informix odbc connection postgres database

PHP. ini configuration details
Click: Times

Abstract: php. ini or php3.ini is the configuration file that PHP reads at startup. The file is stored in/usr/local/lib /. In PHP 3.x, the configuration file is php3.ini, and in PHP 4.x, it is changed to PhP. ini. If PHP is installed as a server module, it will be read when the web server is started and executed, and will not be read later. Therefore, if you change the configuration ..

PHP. ini or php3.ini is the configuration file that PHP reads at startup. The file is stored in/usr/local/lib /. In PHP 3.x, the configuration file is php3.ini, and in PHP 4.x, it is changed to PhP. ini. If PHP is installed as a server module, it will be read when the web server is started and executed, and will not be read later. Therefore, you need to restart the Web server if you change the configuration. If you use an independent php cgi method, read it once every time.

You can use phpinfo () to view the current system configuration. The options are as follows:

Php_value name value: configure the variable name and value. This option can be used only after PHP 4.x.

Php_flag name on | off indicates the Boolean variable option. This option can be used only after PHP 4.x.

Php_admin_value name value configures the configuration file variable of Apache. The configuration in. htaccess is changed to this option. This option can be used only after PHP 4.x.

Php_admin_flag name on | off: configure a Boolean variable as a flag. This option can be used only after PHP 4.x.

Asp_tags Boolean configures whether the PHP program parses the tag with the ASP script syntax <%> ). This option is available only after PHP 3.0.4. For more details, see> embedded methods.

Auto_append_file string this option enables the specified file to be automatically executed after the original PHP program. If the exit () function is used in the PHP program, the specified file will not be executed. The string parameter specifies the automatically executed file.

Auto_prepend_file string this option enables the specified file to be automatically executed before the original PHP program. The string parameter specifies the automatically executed file.

Cgi_ext string this option configures the CGI program extension.

Display_errors Boolean this option configures whether to display the execution error information on the user's browser.

Doc_root string: Configure the server file and the root directory of the PHP file.

Engine Boolean this option requires the Apache module to use PHP. You can configure whether to use the PHP engine. You can add php3_engine on/off to httpd. conf to configure whether to use the PHP parser for a directory or virtual website.

Error_log string this option is used to configure the error record file. On UNIX systems, the parameter string is the file name. Windows NT records the logs in the event viewer. Windows 95/98 does not support system records.

Error_reporting integer this option is used to configure the level of the system record. The integer parameter is the level mark of the level, which can be added together. The default value is 7. See the following table for the level description.
1 General Error
2 general warnings
4 parsing error
8 non-critical warnings

Open_basedir string this option is used to configure the underlying directory that provides PHP access. PHP programs can access files or directories under the specified directory. This option is mainly used for system security considerations. The string parameter is the minimum directory node to be restricted. It is worth noting that in Unix systems, if the file or directory under this node is symbolic link, the purpose of using this option may be discounted, therefore, Directory design is an important task of webmaster. The default value is that all files can be accessed. After PHP 3.0.7, you can configure multiple underlying directories.

Configure the order and rules of the get/post/cookie modules in gpc_order string. The string parameter is the rule to be configured. For example, if it is set to "GP", the cookie is ignored and get is replaced by post when the access method is the same.

The default value of ignore_user_abort string is off. It is used to configure the client disconnection to continue processing when the transmission is not completed.

Include_path string is the file search path for functions such as require, include, and fopen_with_path in the PHP program. In Unix or windows, the diagonal lines are in different directions.

Log_errors Boolean specifies whether to record program errors in log files.

Magic_quotes_gpc Boolean configures special characters for the get/post/cookie modules, including single quotation marks, double quotation marks, backslash, and whether null characters (NUL) are automatically added to the backslash when overflow characters.

Magic_quotes_runtime Boolean indicates whether the returned data is automatically added to the backslash when overflow characters exist.

Magic_quotes_sybase Boolean the single quotation marks in Sybase data must be automatically added with a backslash when overflow characters.

Max_execution_time integer specifies the maximum execution time of the program. The Unit is seconds.

Memory_limit integer specifies the maximum amount of memory used by the configuration program.

Short_open_tag Boolean indicates whether to use short PHP flag (). If not, you must use

Track_errors Boolean enable this option so that the final error information follows the global variable $ php_errormsg.

Track_vars Boolean enable this option to automatically parse the string you entered into the variable, instead of processing it yourself.

Upload_tmp_dir string specifies the temporary path of the uploaded file.

User_dir string specifies the path of the user root directory.

Warn_plus_overloading Boolean if this option is enabled, strings can only be connected by periods (.), but not by the plus sign (+.

SMTP string is used in Windows operating systems to specify the SMTP server for the mail function. The string parameter is the SMTP server name.

Sendmail_from string configuration "from:" string is used by the mail function in Windows operating systems.

Sendmail_path string to configure the placement path of the Sendmail program. For example,/usr/sbin/sendmail.

Run safe_mode Boolean to configure PHP in safe mode.

Safe_mode_exec_dir string specifies the path to run the program in security mode.

Debugger. host string specifies the name of the server for remote debugging, which can be an IP address or domain name.

Debugger. Port string: configure the port of the remote debugging server ).

Whether the debugger. enabled Boolean configuration can be in debugging mode.

Enable_dl Boolean this option is valid only when the Apache module is used. Function used to configure PHP. When the system is in safe-mode, this option enable cannot use the DL () function.

Extension_dir string specifies the path of the dynamic function.

Extension string dynamic expansion function to be loaded when PHP is started.

Whether the mysql. allow_persistent Boolean configuration allows MySQL database persistent connections (persistent connections) will affect the function.

MySQL. max_persistent integer configuration each handler can maintain a maximum of several MySQL persistent connections.

MySQL. max_links integer configuration each processing program can open up to several MySQL connections, including persistent connections.

Whether the msql. allow_persistent Boolean configuration allows persistent connections to the msql database (persistent connections) will affect the function.

Msql. max_persistent integer configuration each handler can maintain a maximum of several msql connections.

Msql. max_links integer configures a maximum of several msql connections for each handler, including persistent connections.

The pgsql. allow_persistent Boolean configuration determines whether to allow the Postgres database to be connected continuously (persistent connections), which affects the function.

Pgsql. max_persistent integer configuration each handler can maintain a maximum of several S of persistent connections.

Pgsql. max_links integer configures a maximum of several ipvs connections for each handler, including persistent connections.

Whether to allow persistent connection (persistent connections) to Sybase. allow_persistent Boolean configuration affects the function.

Sybase. max_persistent integer configuration each handler can maintain a maximum of several Sybase persistent connections.

Sybase. max_links integer configuration each handler can open up to several Sybase connections, including persistent connections.

The sybct. allow_persistent Boolean configuration specifies whether to allow persistent connection to the Sybase-CT database (persistent connections). The default value is enabled.

Sybct. max_persistent integer configuration each handler can maintain a maximum of several Sybase-CT persistent connections. The default value is-1, indicating no limit.

Sybct. max_links integer configuration each handler can open up to several Sybase-CT connections, including persistent connections. The default value is-1, indicating that there is no limit.

Sybct. min_server_severity integer configures the minimum number of messages reported by the Sybase-CT server. The default value is 10.

Sybct. min_client_severity integer configures the minimum number of reports of errors on the Sybase-CT client. The default value is 10.

Sybct. login_timeout integer configures the maximum Logon Time That Sybase-CT can use. The default value is 1 minute.

Sybct. Timeout INTEGER: configure the query Operation Time Limit of Sybase-CT. The default value is unlimited.

Sybct. hostname string configure the name of the machine that can be connected to Sybase-CT. The default value is unlimited.

If the ifx. allow_persistent Boolean configuration permits persistent connections to the Informix Database (persistent connections), the function is affected.

Ifx. max_persistent integer configuration each handler can maintain a maximum of several Informix persistent connections.

Ifx. max_links integer configures a maximum of several Informix connections for each handler, including persistent connections.

Ifx. default_host string configures the default server name connected to Informix for use by ifx_connect () or ifx_pconnect () functions.

Ifx. default_user string configures the default user account connected to Informix for use by ifx_connect () or ifx_pconnect (function.

Ifx. default_password string configures the user password for the default Informix connection for use by the ifx_connect () or ifx_pconnect () functions.

Ifx. blobinfile Boolean configures the Informix long-bit class mode. Table 0 is in the memory, and table 1 is in the file. You can also use the ifx_blobinfile_mode () function in the PHP program to modify the function.

Ifx. textasvarchar Boolean configures the default Informix text mode. Table 0 returns the Blob code. Table 1 returns the varchar string. You can also use the ifx_textasvarchar () function in the PHP program to modify the configuration.

Ifx. byteasvarchar Boolean configures the default Informix bit group mode. Table 0 returns the Blob code. Table 1 returns the varchar string. You can also use ifx_byteasvarchar () in the PHP program to modify the configuration.

If ifx. charasvarchar Boolean is configured, whether to remove spaces at the end of the character string returned by Informix.

Ifx. nullformat Boolean configures the return method of the null field. True indicates that the return string is null. False indicates that the return string "" is returned "". You can also modify it with ifx_nullformat () in the PHP program.

Bcmath. Scale Integer configures the number of decimal places in the BC high-precision function library.

Browscap string configures the name of the open file capability of the browser.

Uodbc. default_db string configures the default name of the database connected to ODBC for use by the odbc_connect () or odbc_pconnect () functions.

Uodbc. default_user string configures the user account connected to ODBC by default for use by the odbc_connect () or odbc_pconnect () functions.

Uodbc. default_pw string configures the user password for the default ODBC connection for use by odbc_connect () or functions.

Whether the uodbc. allow_persistent Boolean configuration allows the ODBC database to be connected continuously (persistent connections) may affect the odbc_pconnect () function.

Uodbc. max_persistent integer configuration each handler can maintain a maximum of several ODBC connections.

Uodbc. max_links integer configures a maximum of several ODBC connections for each handler, including persistent connections.

The following session-related configuration values are supported by PHP 4.x and later versions. In the configuration file of PHP. ini.

Session. save_handler defines the name of the file for storing session data. The default value is files.

Session. save_path defines the file path for storing session data. The default value is/tmp.

Session. name indicates the cookie name used by the session. The default value is PHPSESSID.

Session. auto_start: Configure whether the session is automatically opened. The default value is 0 (NO ).

Session. Lifetime configure the storage time after the cookie is sent to the browser, in seconds. The default value is 0, indicating that the browser is closed.

Session. serialize_handler defines the headers of continuous/Jie continuous data. This function is only used in the wddx module or PHP. The default value is Php.

Session. gc_probability configure the waste collection (GC, garbage collection) Processing probability for each request response. The default value is 1.

Session. gc_maxlifetime specifies the number of seconds before the waste is cleared.

Session. extern_referer_check determines whether to delete the session code referenced to the client. Sometimes the configuration is not deleted for security or other considerations. The default value is 0.

When session. entropy_file is used to configure the session code, it is created using an external high-entropy resource or file, such as/dev/random on a UNIX system or/dev/urandom.

Session. entropy_length configure the number of BITs that the session reads from high-entropy resources. The default value is 0.

Session. use_cookies: whether to change session to Cookie on the user end. The default value is 1. This function is enabled for the table.

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.