PHP.ini Configuration Detail Options

Source: Internet
Author: User
Tags execution garbage collection connect odbc mysql string sybase sybase database
PHP.ini Configuration Detail Options
-----------------------------------------------------
PHP.ini or Php3.ini is the configuration file that PHP reads when it starts. The path where the file is stored

For/usr/local/lib/. In the PHP 3.x version of the configuration file for Php3.ini, while in PHP 4.x

Version changed to PHP.ini. If PHP is installed as a server module, then when the Web server starts execution

is read and then no longer read, so the WEB server will be restarted if the configuration is changed. If you use

Standalone PHP CGI, 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


Configure variable names and values. This option will not be available until you have a 4.x version of PHP.


Php_flag name On|off


Configure flags Boolean variable options. This option will not be available until you have a 4.x version of PHP.


Php_admin_value Name Value


Configure the Apache configuration file variable. The original configuration of the. htaccess is changed to this option configuration.

This option will not be available until you have a 4.x version of PHP.


Php_admin_flag name On|off


Configure Boolean variables as flags. This option will not be available until you have a 4.x version of PHP.


Asp_tags Boolean


Configure whether the PHP program resolves the tag (tag) <%%> with ASP Script syntax. This option is

PHP 3.0.4 Before you can use it. More details can be used to refer to the part of the embedding method.


Auto_append_file string


Configure this option to have the specified file attached automatically after the original PHP program. If the PHP program

The specified file is not executed if the exit () function is useful in the. The parameter string is the specified automatic

Execution of the file.


Auto_prepend_file string


Configure this option to allow the specified file to be executed automatically before the original PHP program. The parameter string is

Specifies the automatically executed file.


Cgi_ext string


This option configures the name of the CGI program extension.


Display_errors Boolean


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


Doc_root string


Configure the server's files and the root directory where the PHP files are placed.


Engine Boolean


This option requires using the Apache module to use PHP. You can configure whether you want to use the PHP engine. In

httpd.conf Add Php3_engine On/off can also configure a directory or a virtual Web site to

With the PHP parser.


Error_log string


This option is used to configure error logging files. The parameter string is the file name on the UNIX system.

Windows NT will record records in the log of the Event Viewer. Windows 95/98 does not support the department

Records of the organization.


error_reporting integer


This option is used to configure the level of system records. The integer of the parameter is a series mark of grade, which can be added

Together, the default value is 7, as shown in the following table


Series Description


1 General Errors


2 General Warning


4 Parse Error


8 Non-critical warnings

Open_basedir string


This option is used to configure the bottommost directory that provides access to PHP. From the file or directory below the specified directory

, PHP programs can be accessed. This option is used primarily for system security considerations. Parameter string

is the lowest-level directory node to restrict. It is important to note that in a UNIX system, if the node

File or directory has a symbolic link (symbolic link), you might want to use this option for the purpose of playing

, therefore, it is also an important task of webmaster to consider the design of the catalogue. The default value is all text

Parts are accessible. After the PHP 3.0.7 version, you can configure multiple underlying directories.


Gpc_order string


Configure the order and rules of the Get/post/cookie three modules. Parameter string is the gauge to configure

Then, for example, configure "GP" to indicate that the cookie is ignored and, in the same way as the access method,

Replace get with POST.


Ignore_user_abort string


The default value is off. Used to configure when the transfer is not completed, the client is disconnected to continue processing.


Include_path string


File search path for functions such as require, include, and Fopen_with_path in PHP programs

Diameter. The slash direction in UNIX or Windows is different.


Log_errors Boolean


Specifies whether to log in log files when the program is wrong.


MAGIC_QUOTES_GPC Boolean


Configure special characters for Get/post/cookie three modules, including single quotes, double quotes, backslashes,

and the null character (NUL) is automatically added to the backslash when the overflow character.


Magic_quotes_runtime Boolean


Configuration returns whether the data is automatically added to the backslash when the overflow character.


Magic_quotes_sybase Boolean


Configure the single quotes in Sybase data to automatically add backslashes when overflow characters.


Max_execution_time integer


Configures the longest execution time for a program. The unit is seconds.


Memory_limit integer


Configures the maximum amount of memory that the program uses.


Short_open_tag Boolean


Configure whether to use short PHP tags (?>). If you do not use, you must use <?php as a process

At the beginning of the sequence, turn off this feature if you want the program to conform to the XML standard.


Track_errors Boolean


Turn on this option to make the final error message follow the global variable $php _errormsg.


Track_vars Boolean


Opening this option allows the user-entered string to be automatically parsed into a variable rather than handled by itself.


Upload_tmp_dir string


Specifies the temporary path to the upload file.


User_dir string


Specifies the path to the user's root directory.


Warn_plus_overloading Boolean


If this option is turned on, the string can only be linked by a period (.) in English and not by a plus sign (+).

The link string.


SMTP string


In the Windows family operating system, specifies the SMTP server to use for mail functions. Parameter

Number string is the SMTP server name.


Sendmail_from string


Configure the "from:" String for the Windows family operating system to use the mail function.


Sendmail_path string


Configure the placement path for the SendMail program. such as/usr/sbin/sendmail.


Safe_mode Boolean


Configure PHP to execute in safe mode.


Safe_mode_exec_dir string


Configures the path for Safe Mode program execution.


Debugger.host string


Specifies the server name for remote debugging, either IP or Domain name.


Debugger.port string


Configure the port of the remote debugging server.


Debugger.enabled Boolean


Whether the configuration can be debug mode.


ENABLE_DL Boolean


This option is available in the form of the Apache module (Apache modules). Used to configure PHP.

The DL () function can function. This option enable when the system is in Safe Mode (Safe-mode)

The DL () function is also not available.


Extension_dir string


Configures the path of a dynamic function.


Extension string


The dynamic extension that PHP will load when it starts.


Mysql.allow_persistent Boolean


Configuring whether to allow a persistent MySQL database connection (persistent connections) can affect

Mysql_pconnect () function.


Mysql.max_persistent integer


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


Mysql.max_links integer


Configure each handler to open up to a few MySQL connections, including persistent connections.


Msql.allow_persistent Boolean


Configuring whether to allow mSQL database persistent connections (persistent connections) can affect

Msql_pconnect () function.


Msql.max_persistent integer


Configure each handler to maintain a maximum of several msql persistent connections.


Msql.max_links integer


Configure each handler to open up to a few msql connections, including persistent connections.


Pgsql.allow_persistent Boolean


Configuring whether to allow Postgres database persistent connections (persistent connections) can affect

Pg_pconnect () function.


Pgsql.max_persistent integer


Configure each handler to maintain a maximum of several Postgres persistent connections.


Pgsql.max_links integer


Configure each handler to open up to a few Postgres connections, including persistent connections.


Sybase.allow_persistent Boolean


Configuring whether to allow the Sybase database to continue to connect (persistent connections) can affect

Sybase_pconnect () function.


Sybase.max_persistent integer


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


Sybase.max_links integer


Configure each handler to open up to a few Sybase connections, including persistent connections.


Sybct.allow_persistent Boolean


Configure whether to allow SYBASE-CT database persistent connections (persistent connections), default

The value is open.


Sybct.max_persistent integer


Configure each handler to maintain a maximum of several sybase-ct persistent connections. The default value is-1 indicates infinite

System.


Sybct.max_links integer


Configure each handler to open up to a few sybase-ct connections, including persistent connections. The default value is

-1, indicating no limit.


Sybct.min_server_severity integer


Configure the minimum number of pens for SYBASE-CT server error reporting. The default value is 10.


Sybct.min_client_severity integer


Configure the minimum number of pens for SYBASE-CT client error reporting. The default value is 10.


Sybct.login_timeout integer


Configure the maximum login time that SYBASE-CT can use. 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


Configure SYBASE-CT to connect machine names. Default value is not set


Ifx.allow_persistent Boolean


Configuring whether to allow the Informix database to continue to connect (persistent connections) can affect

Ifx_pconnect () function.


Ifx.max_persistent integer


Configure each handler to maintain a maximum of several Informix continuous connections.


Ifx.max_links integer


Configure each handler to open up to several Informix connections, including persistent connections.


Ifx.default_host string


Configure the server name for the Informix default connection for Ifx_connect () or

The Ifx_pconnect () function is used.


Ifx.default_user string


Configure the user account for the Informix default connection for Ifx_connect () or Ifx_pconnect ()

function to use.


Ifx.default_password string


Configure the user password for Informix default connection for Ifx_connect () or Ifx_pconnect ()

function to use.


Ifx.blobinfile Boolean


Configure the Informix long-bit class mode, 0 tables in memory, and 1 tables in the file. can also be in the PHP program

Use the Ifx_blobinfile_mode () function to modify.


Ifx.textasvarchar Boolean


Configure Informix text mode defaults, 0 table returns the code for the BLOB, 1 table returns varchar

String. You can also use the Ifx_textasvarchar () function in your PHP program to modify the configuration.


Ifx.byteasvarchar Boolean


Configure the Informix bit group mode defaults, the 0 table returns the BLOB code; 1 Table returns varchar

String. You can also use Ifx_byteasvarchar () in your PHP program to modify the configuration.


Ifx.charasvarchar Boolean


Configures whether the trailing spaces of Informix return strings are automatically removed.


Ifx.nullformat Boolean


To configure the return of a NULL field, true to return a string null,false a table return word

Character string "". Also in the PHP program with Ifx_nullformat () modified.


Bcmath.scale integer


Configure the number of decimal places for the BC high precision function library.


Browscap string


Configure the browser's open file capability name.


uodbc.default_db string


Configure the database name of the ODBC default connection for Odbc_connect () or Odbc_pconnect ()

function to use.


Uodbc.default_user string


Configure the user account for the ODBC default connection for Odbc_connect () or odbc_pconnect () Letter

Number of uses.


UODBC.DEFAULT_PW string


Configure the user password for the ODBC default connection for Odbc_connect () or odbc_pconnect () Letter

Number of uses.


Uodbc.allow_persistent Boolean


Configuring whether to allow persistent ODBC database connections (persistent connections) can affect

Odbc_pconnect () function.


Uodbc.max_persistent integer


Configure each handler to maintain a maximum of several ODBC persistent connections.


Uodbc.max_links integer


Configure each handler to open up to a few ODBC connections, including persistent connections.


The following configuration values related to the session are supported by the version side of PHP above 4.x. In

PHP.ini in the configuration file.



Session.save_handler


Defines the file name of the session store data. The default value is files.


Session.save_path


Defines the file path where the session stores data. The default value is/tmp.


Session.name


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


Session.auto_start


Configures whether session is automatically opened. The default value is 0 (no).


Session.lifetime


Configure the time, in seconds, for the cookie to be saved after it is sent to the browser. The default value is 0, which means that until the bangs

The navigator closes.


Session.serialize_handler


Defines a continuous/solution continuous data header, this feature is only WDDX module or PHP internal use. Default

Value is PHP.


Session.gc_probability


Configure the probability of each collection of waste collected (GC, garbage collection) that requires a timely return. Default

Value is 1.


Session.gc_maxlifetime


Configure the number of surviving seconds before the waste is cleared.


Session.extern_referer_check


Determines whether the session code referenced to the client is to be deleted. Sometimes when it comes to security or other considerations,

Configuration is not deleted. The default value is 0.


Session.entropy_file


Configure the session code to be established using an external high entropy resource or file, such as the UNIX system

/dev/random or/dev/urandom on the EC.


Session.entropy_length


Configures the number of bit groups that the session reads from a high entropy value 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 opens the work

Yes.




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.