PHP Tutorial: php. ini configuration option _ PHP Tutorial

Source: Internet
Author: User
Tags informix php tutorial for beginners sybase database
PHP Tutorial for Beginners: detailed options for configuring php. ini. Php. ini or php3.ini is the configuration file that PHP reads at startup. The file is stored in usrlocallib. In PHP3.x, the configuration file is php3.ini, and in PHP4.x, it is changed

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
Configure the flag Boolean variable option. This option can be used only after PHP 4.x.

Php_admin_value name value
Configure Apache configuration file variables. 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
Configure 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 allows the specified file to be appended to the original PHP program for automatic execution. 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 allows 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 is used to configure whether to display the error message in the user's browser.

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

Engine boolean
This option uses PHP as the apache module. 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 log 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, as shown in the following table.
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.

Gpc_order string
Configure the order and rules of the GET/POST/COOKIE modules. 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.

Ignore_user_abort string
The default value is Off. It is used to configure the client disconnection to continue processing when the transmission is not completed.

Include_path string
It 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
Configure special characters for The GET/POST/COOKIE modules, including single quotation marks, double quotation marks, backslash, and NUL. do you want to automatically add backslash characters when overflow occurs.

Magic_quotes_runtime boolean
Configure whether the returned information is automatically added to the backslash when the character overflows.

Magic_quotes_sybase boolean
When you configure sybase, the single quotation marks must be automatically added with a backslash when overflow occurs.

Max_execution_time integer
The longest execution time of the configuration program. The unit is seconds.

Memory_limit integer
Maximum memory used by the configuration program.

Short_open_tag boolean
Configure whether to use the short PHP flag ( ). If not, you must use

Track_errors boolean
Enable this option to keep the final error message following the global variable $ php_errormsg.

Track_vars boolean
This option enables the user to automatically resolve the input string to the variable, instead of processing it by yourself.

Upload_tmp_dir string
Specifies the temporary path of the uploaded file.

User_dir string
Specifies the path of the root directory of the user.

Warn_plus_overloading boolean
If this option is enabled, strings can only be connected by periods (.), but cannot be connected by the plus sign (+.

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

Sendmail_from string
Configure the "From:" string to use the mail function for Windows operating systems.

Sendmail_path string
Configure the placement path of the sendmail program. For example,/usr/sbin/sendmail.

Safe_mode boolean
Configure PHP to run in safe mode.

Safe_mode_exec_dir string
Configure the path for program execution in security mode.

Debugger. host string
Specify 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 ).

Debugger. enabled boolean
Whether the 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
Configure the path of the dynamic function.

Extension string
Dynamic Expansion function to be loaded when PHP is started.

Mysql. allow_persistent boolean
Configuring whether to allow MySQL database persistent connection (persistent connections) affects the function.

Mysql. max_persistent integer
Configure each handler to maintain a maximum of several MySQL persistent connections.

Mysql. max_links integer
Configure a maximum of several MySQL connections for each processing program, including persistent connections.

Msql. allow_persistent boolean
Configuring whether to allow persistent connections to the mSQL database affects the function.

Msql. max_persistent integer
Configure each handler to maintain a maximum of several persistent mSQL connections.

Msql. max_links integer
Configure a maximum of several mSQL connections for each handler, including persistent connections.

Pgsql. allow_persistent boolean
Configuring whether to allow persistent connections to the IPVs database will affect the function.

Pgsql. max_persistent integer
Configure each handler to maintain a maximum of several S of persistent connections.

Pgsql. max_links integer
Configure a maximum of several IPVs connections for each handler, including persistent connections.

Sybase. allow_persistent boolean
Configuring whether to allow persistent connection to the Sybase database affects the function.

Sybase. max_persistent integer
Configure each handler to maintain a maximum of several Sybase persistent connections.

Sybase. max_links integer
Configure a maximum of several Sybase connections for each handler, including persistent connections.

Sybct. allow_persistent boolean
Configure whether to allow persistent connection (persistent connections) to the Sybase-CT Database. the default value is enabled.

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

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

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

Sybct. min_client_severity integer
Configure the minimum number of errors reported by The Sybase-CT client. The default value is 10.

Sybct. login_timeout integer
Configure the maximum logon time that Sybase-CT can use. The default value is 1 minute.

Sybct. timeout integer
Configure the query operation time limit for 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.

Ifx. allow_persistent boolean
Configuring whether to allow persistent connections to the Informix database affects the function.

Ifx. max_persistent integer
Configure each handler to maintain a maximum of several Informix persistent connections.

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

Ifx. default_host string
Configure the default server name that Informix connects to for use by the ifx_connect () or ifx_pconnect () functions.

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

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

Ifx. blobinfile boolean
Configure 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
Configure the default Informix text mode. table 0 returns the blob code. Table 1 returns

The http://www.bkjia.com/PHPjc/531658.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/531658.htmlTechArticlephp.ini or php3.ini is the configuration file that PHP will read 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...

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.