PHP.ini Configuration Detail Options _php Tutorial

Source: Internet
Author: User
Tags informix sybase sybase database postgres database
PHP.ini or Php3.ini is the configuration file that PHP reads at startup. The file's storage path is/usr/local/lib/. In PHP version 3.x configuration file is Php3.ini, and in PHP 4.x version changed to PHP.ini. If PHP is installed as a server module, it will be read when the Web server starts execution and then no longer read, so change the configuration to restart the Web server. If you are using a standalone PHP CGI method, read it every time.

To see the current system configuration, you can see it with phpinfo (). The following options are configured

Php_value Name value configures the variable name and value. This option is required for PHP version 4.x to be used.

Php_flag name On|off The Configure Flags boolean variable option. This option is required for PHP version 4.x to be used.

Php_admin_value Name value configures the configuration file variable for Apache. The original configuration in. htaccess is changed to this option configuration. This option is required for PHP version 4.x to be used.

Php_admin_flag name On|off Configures the Boolean variable as a flag. This option is required for PHP version 4.x to be used.

Asp_tags Boolean configures whether the PHP program resolves <%%> tags (tag) in ASP Script syntax. This option is only available after PHP 3.0.4. More details can be found in the > Embedding method.

Auto_append_file String Configuration This option allows the specified file to be attached automatically after the original PHP program. If the PHP program is useful to the exit () function, the specified file will not be executed. The parameter string is the file that specifies the automatic execution.

Auto_prepend_file String Configuration This option allows the specified file to be executed automatically before the original PHP program. The parameter string is the file that specifies the automatic execution.

Cgi_ext string This option configures the name extension of the CGI program.

Display_errors Boolean This option configures whether to display error messages that are executed on the user's browser.

Doc_root string configures the server's files and the root directory where the PHP files are placed.

The engine Boolean option requires PHP using the Apache module. You can configure whether you want to use the PHP engine. Add Php3_engine on/off in httpd.conf You can also configure a directory or a virtual Web site to use the PHP parser.

Error_log string This option is used to configure error logging files. The parameter string on the UNIX system is the file name. Windows NT logs the record in the Event Viewer's log. Windows 95/98 does not support system logging.

error_reporting integer This option is used to configure the level of system records. Parameter integer is the level of the series flag, can be added together, the default value is 7, see the following table
Series Description
1 A general error
2 A general warning
4 Parsing errors
8 Non-critical warnings

Open_basedir string This option configures the lowest-level directory that provides access to PHP. From the file or directory below the specified directory, the PHP program can access it. The use of this option is primarily for system security considerations. The parameter string is the lowest-level directory node to limit. It is important to note that in UNIX systems, if the file or directory under the node has a symbolic link (symbolic link), it may be discounted for the purpose of using this option, therefore, in the design of the directory, it is also a Webmaster task. The default value is that all files are accessible. After PHP version 3.0.7, you can configure multiple underlying directories.

Gpc_order string configuration Get/post/cookie the sequence and rules of three modules. The parameter string is the rule to be configured, for example, to configure "GP" to ignore cookies and to replace GET with POST at the same time as the access method.

Ignore_user_abort string Default value is Off. Used to configure when the transfer is not complete, the client is disconnected to continue processing.

Include_path string is a file search path for functions such as require, include, and Fopen_with_path in PHP programs. The diagonal direction in UNIX or Windows is different.

Log_errors Boolean Specifies whether a program error is to be logged in the log file.

The MAGIC_QUOTES_GPC boolean configuration Get/post/cookie the special characters of three modules, including single quotes, double quotes, backslashes, and null characters (NUL) if you want to automatically add backslashes when the overflow character.

The Magic_quotes_runtime boolean configuration returns whether the data is automatically added as a backslash when the overflow character.

Magic_quotes_sybase Boolean to configure the single quotation mark in the Sybase data to be automatically prefixed with a backslash when the overflow character.

Max_execution_time the maximum execution time for the integer configuration program. Unit is seconds.

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

Short_open_tag Boolean configuration whether to use short PHP tags ( ). If you do not use it, you must use

Track_errors Boolean opens this option to allow the last error message to follow the global variable $php _errormsg.

Track_vars Boolean opens this option to allow user-entered strings to be automatically parsed into variables instead of being handled by themselves.

Upload_tmp_dir string Specifies the temporary path of the upload file.

User_dir string Specifies the path to the user root directory.

Warn_plus_overloading Boolean If you open this option, the string can only be linked with a period (.) in English, not a plus sign (+) Link string.

SMTP string is used in the Windows family operating system to specify an SMTP server for use by the mail function. The parameter string is the SMTP server name.

Sendmail_from string Configures "from:" Strings for the Windows family operating system to use the mail function.

Sendmail_path string to configure the placement path of the SendMail program. such as/usr/sbin/sendmail.

Safe_mode Boolean configures PHP to execute in safe mode.

Safe_mode_exec_dir string configures the path of the Safe Mode program execution.

Debugger.host string Specifies the server name for remote debugging, which can be either IP or Domain name.

Debugger.port string to configure the port of the Remote debug server.

Debugger.enabled whether the Boolean configuration can be debug mode.

ENABLE_DL Boolean This option is only valid if you want to use the Apache module. The function used to configure PHP can be useful. This option can also not use the DL () function when the system is in Safe Mode (Safe-mode).

Extension_dir string to configure the path of the dynamic function.

Extension string PHP to load the dynamic expansion function when starting.

Mysql.allow_persistent Boolean configuration allows the MySQL database to continue to connect (persistent connections), which affects the function.

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

Mysql.max_links integer configures each handler to open up to a few MySQL connections, including persistent connections.

Msql.allow_persistent Boolean configuration allows the mSQL database to continue to connect (persistent connections), which affects the function.

Msql.max_persistent integer configures each handler to maintain a maximum of several msql persistent connections.

Msql.max_links integer configures each handler to open up to several msql connections, including persistent connections.

Pgsql.allow_persistent Boolean configuration allows the Postgres database to continue to connect (persistent connections), which affects the function.

Pgsql.max_persistent integer configures each handler to maintain a maximum of several Postgres persistent connections.

Pgsql.max_links integer configures each handler to open up to several Postgres connections, including persistent connections.

Sybase.allow_persistent Boolean configuration allows the Sybase database to continue to connect (persistent connections), which affects the function.

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

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

Sybct.allow_persistent Boolean configuration allows the SYBASE-CT database to continue to connect (persistent connections), the default value is open.

Sybct.max_persistent integer configures each handler to maintain a maximum of several sybase-ct persistent connections. The default value is-1, which means no limit.

Sybct.max_links integer configures each handler to open up to several SYBASE-CT connections, including persistent connections. The default value is-1, which means there is no limit.

Sybct.min_server_severity integer configures the minimum number of pens for SYBASE-CT server error reporting. The default value is 10.

Sybct.min_client_severity integer configures the minimum number of pens for SYBASE-CT client error reporting. The default value is 10.

Sybct.login_timeout Integer configures sybase-ct the longest log-in time that can be used. The default value is 1 minutes.

Sybct.timeout integer configures the SYBASE-CT query operation time limit. The default value is unrestricted.

Sybct.hostname String configuration sybase-ct to connect the machine name. Default value is not set

Ifx.allow_persistent Boolean configuration allows the Informix database to continue to connect (persistent connections), which affects the function.

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

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

Ifx.default_host string configures the server name of the Informix default connection for use by the Ifx_connect () or Ifx_pconnect () function.

Ifx.default_user string configures the user account for the Informix default connection for Ifx_connect () or ifx_pconnect (function use.

Ifx.default_password string configures the user password for the Informix default connection for use by the Ifx_connect () or Ifx_pconnect () function.

Ifx.blobinfile Boolean configures the Informix long-bit class mode, 0 tables in memory, and 1 tables in the file. You can also use the Ifx_blobinfile_mode () function in your PHP program to modify it.

Ifx.textasvarchar Boolean configures the Informix literal mode default value, 0 returns the BLOB code for the table, and 1 returns a varchar string. You can also use the Ifx_textasvarchar () function in your PHP program to modify the configuration.

Ifx.byteasvarchar Boolean configures the Informix bit group mode default value, 0 tables returns the BLOB code, and 1 tables returns a varchar string. You can also use Ifx_byteasvarchar () in your PHP program to modify the configuration.

Ifx.charasvarchar Boolean configures Informix to return the trailing space of a string if it is to be automatically removed.

Ifx.nullformat Boolean to configure the return of the NULL field, true to return the string null,false the table returns the string "". It can also be modified with Ifx_nullformat () in the PHP program.

Bcmath.scale integer configures the number of decimal places in the BC high-precision library.

Browscap string configures the browser's open file capability name.

uodbc.default_db string configures the database name of the ODBC default connection for use by the Odbc_connect () or Odbc_pconnect () function.

Uodbc.default_user string configures the ODBC default connection user account for use by the Odbc_connect () or Odbc_pconnect () function.

UODBC.DEFAULT_PW string configures the user password for the ODBC default connection for use by odbc_connect () or function.

The Uodbc.allow_persistent boolean configuration allows the ODBC database to continue to connect (persistent connections), which affects the Odbc_pconnect () function.

Uodbc.max_persistent integer configures each handler to maintain a maximum of several ODBC persistent connections.

Uodbc.max_links integer configures each handler to open up to a few ODBC connections, including persistent connections.

The following and session-related configuration values are supported by versions in PHP 4.x or more. In the php.ini configuration file.

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

Session.save_path defines the file path of the session storage data. The default value is/tmp.

Session.name the name of the cookie used to configure the session. The default value is PHPSESSID.

Session.auto_start configure whether the session will open automatically. The default value is 0 (no).

Session.lifetime the time, in seconds, that the cookie was saved after it was sent to the browser. The default value is 0, which is indicated until the browser is closed.

Session.serialize_handler defines the header for continuous/solution continuous data, this function is used only by WDDX module or PHP internal. The default value is PHP.

The session.gc_probability configures the probability of the waste collection (GC, garbage collection) to be processed each time the request is returned. The default value is 1.

Session.gc_maxlifetime configures the number of seconds to survive before the waste is cleared.

Session.extern_referer_check decides whether to delete the Session code to the client. Sometimes the configuration is not removed when security or other considerations occur. The default value is 0.

Session.entropy_file Configuration Session code is established using an external high-entropy resource or file, such as a/dev/random or/dev/urandom on a UNIX system.

The session.entropy_length configures the number of bit groups that the session reads from the high entropy resource. The default value is 0.

Session.use_cookies Configure whether to turn the session into a cookie exists on the client side. The default value is 1, and the table is open for this feature.


http://www.bkjia.com/PHPjc/446858.html www.bkjia.com true http://www.bkjia.com/PHPjc/446858.html techarticle php.ini or Php3.ini is the configuration file that PHP reads at startup. The file's storage path is/usr/local/lib/. In PHP version 3.x configuration file is Php3.ini, and in PHP 4.x version changed to ...

  • 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.