Php3.ini and php. ini configuration file options

Source: Internet
Author: User
Tags informix sybase sybase database
Php. ini or php3.ini is the setting 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 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, re-start php if you change the settings. ini or php3.ini is the setting file that PHP reads at startup. The storage path of this file is
/Usr/local/lib /. In PHP 3.x, the configuration file is php3.ini, and in PHP 4.x, it is changed
Php. ini. If PHP is installed as a server module, it will be read when the Web server is started and executed.
No longer read, so you need to restart the Web server if you change the settings. If the independent php cgi mode is used
Read each time.
You can use phpinfo () to view the current system settings. The options are as follows:


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


Php_flag name on | off
Set the flag Blin variable option. This option can be used only after PHP 4.x.


Php_admin_value name value
Set Apache configuration variables. In the original. htaccess settings to this option settings. This option requires
PHP 4.x can be used later.


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


Asp_tags boolean
Set whether the PHP program parses the tag with the ASP Script syntax <%> ). This option is available in PHP
3.0.4 before use. For more details, refer to the embedded method section.


Auto_append_file string
Set this option to automatically execute the specified file appended to the original PHP program. If PHP programs are used
Exit (), the specified file will not be executed. The string parameter specifies the automatically executed file.


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


Cgi_ext string
This option sets the sub-file name of the CGI program.


Display_errors boolean
This option sets whether to display the error message to the user's browser.


Doc_root string
Set the root directory of the server files and PHP files.


Engine boolean
This option requires the Apache module to use PHP. You can set whether to use the PHP engine. In
You can also add php3_engine on/off to httpd. conf to set whether PHP is used for a directory or a virtual platform.
Interpreter.


Error_log string
This option is used to set error records. On UNIX systems, the parameter string is the file name. Windows NT
Records are recorded in the logs of the event viewer. Windows 95/98 does not support system records.


Error_reporting integer
This option is used to set the level of the system record. The integer parameter is the level flag, which can be added to 1.
Starting from, the internal value is 7, as shown in the table below
Level Description
1 General error
2 General warnings
4 profiling errors
8 non-critical warnings

Open_basedir string
This option is used to set the underlying directory that provides PHP access. From the file or directory under the specified directory, PHP
Programs can be accessed. This option is mainly used for system security considerations. The string parameter is
The bottom-layer directory node. It is worth noting that in UNIX systems, if the files or directories under this node have a symbolic chain
Symbolic link may cause discounts for the purpose of using this option. therefore, consider the directory design,
It is also an important task of Webmaster. The specified value is that all files can be accessed. After PHP 3.0.7, you can
To set multiple underlying directories.


Gpc_order string
Set the order and rules of the GET/POST/COOKIE modules. The string parameter is the rule to be set. for example
For example, if it is set to "GP", the cookie is ignored and replaced by POST when the access method is the same
GET.


Ignore_user_abort string
The specified value is Off. It is used to set that the user end will continue to process the disconnection when the transmission is not completed.


Include_path string
It is the file search path for require, include, fopen_with_path, and other functions in the PHP program. In
The diagonal lines in UNIX or Windows vary in different directions.


Log_errors boolean
Specifies whether to record program errors in log files.


Magic_quotes_gpc boolean
Set special characters for The GET/POST/COOKIE modules, including single quotation marks, double quotation marks, backslash, and empty characters.
Whether the element (NUL) needs to be automatically added with a backslash when the character overflows.


Magic_quotes_runtime boolean
Determines whether to automatically add a backslash to the returned data when the character overflows.


Magic_quotes_sybase boolean
Set the single quotation mark in sybase to automatically add a backslash to the text when the character overflows.


Max_execution_time integer
Set the longest running time of the program. The unit is seconds.


Memory_limit integer
Set the maximum memory used by the program.


Short_open_tag boolean
Set whether to use the short PHP flag ( ). If not, you must use To make the program conform to XML standards, disable this function.


Track_errors boolean
Enable this option to make the final error message followed by the global variable $ php_errormsg.


Track_vars boolean
Open this option to allow the user to automatically analyze the input string to the variable, instead of processing it by yourself.


Upload_tmp_dir string
Specifies the path for storing uploaded files.


User_dir string
Specifies the path of the user's own directory.


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 mail. Parameters
String indicates the SMTP server name.


Sendmail_from string
Set the "From:" string to mail for Windows operating systems.


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


Safe_mode boolean
Set PHP to run in safe mode.


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


Debugger. host string
Specify the Name of the remote server, which can be an IP address or Domain Name.


Debugger. port string
Set the port number of the remote debugging server ).


Debugger. enabled boolean
Set whether the mode can be a debugging mode.


Enable_dl boolean
This option is valid only when Apache module is used. Dl () function used to set PHP
Type. When the system is in safe-mode, this option enable cannot use dl ()
Function.


Extension_dir string
Set the path of the dynamic function.


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


Mysql. allow_persistent boolean
Whether to allow persistent connections to the MySQL database (persistent connections) may be affected.
Mysql_pconnect () function.


Mysql. max_persistent integer
Set a maximum of several MySQL long-term connections for each processing program.


Mysql. max_links integer
Set a maximum of several MySQL connections for each processing program, including long-term connections.


Msql. allow_persistent boolean
Whether to allow persistent connections of the mSQL database (persistent connections) may be affected.
Msql_pconnect () function.


Msql. max_persistent integer
Set a maximum of several mSQL connections for each processing program.


Msql. max_links integer
Set a maximum of several mSQL connections for each processing program, including long-term connections.


Pgsql. allow_persistent boolean
Whether to allow persistent connections to the IPVs database (persistent connections) may be affected.
Pg_pConnect () function.


Pgsql. max_persistent integer
Set the maximum number of persistent connections for each processing program.


Pgsql. max_links integer
Set the maximum number of Postgres connections for each processing program, including long-term connections.


Sybase. allow_persistent boolean
Whether to allow persistent connections to the Sybase database (persistent connections) may be affected.
Sybase_pconnect () function.


Sybase. max_persistent integer
Set a maximum of several Sybase persistent connections for each processing program.


Sybase. max_links integer
Set a maximum of several Sybase connections for each processing program, including long-term connections.


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


Sybct. max_persistent integer
Set a maximum of several Sybase-CT long-term connections for each processing program. -1 indicates no limit.


Sybct. max_links integer
Set up to several Sybase-CT connections for each processing program, including long-term connections. The specified value is-1, indicating no
There are limits.


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


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


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


Sybct. timeout integer
Sets the query operation time limit for Sybase-CT. The specified value is unlimited.


Sybct. hostname string
Set the name of the machine that can be connected to Sybase-CT. The specified value is not limited.


Ifx. allow_persistent boolean
Whether to allow long-term connections to the Informix database (persistent connections) may be affected.
Ifx_pconnect () function.


Ifx. max_persistent integer
Set a maximum of several Informix long-term connections for each handler.


Ifx. max_links integer
Set a maximum of several Informix connections for each processing program, including long-term connections.


Ifx. default_host string
Set the name of the server in Informix for ifx_connect () or ifx_pconnect ().
.


Ifx. default_user string
Sets the user account for the established connections in Informix for ifx_connect () or ifx_pconnect ().
.


Ifx. default_password string
Set the password of the user who sets the link in Informix for ifx_connect () or ifx_pconnect ().
.


Ifx. blobinfile boolean
Sets the Informix long-bit object mode. table 0 is in the memory, and Table 1 is in the file. You can also program in PHP
Use ifx_blobinfile_mode () to modify.


Ifx. textasvarchar boolean
Set the value in 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 settings.


Ifx. byteasvarchar boolean
Sets the setting value in the Informix Bitte mode. table 0 returns the blob code. Table 1 returns the varchar word.
String. You can also use ifx_byteasvarchar () in a PHP program to modify the settings.


Ifx. charasvarchar boolean
Determines whether spaces at the end of the character string returned by Informix are automatically removed.


Ifx. nullformat boolean
Sets the return mode of the NULL field. true indicates that the returned string is NULL. false indicates that the returned string is "". Yi
You can use ifx_nullformat () in the PHP program.


Bcmath. scale integer
Sets the number of decimal places in the BC High-Precision Library.


Browscap string
Set the open file name of the browser.


Uodbc. default_db string
Set the database name of the ODBC internal connection for use by the odbc_connect () or odbc_pconnect () function.
.


Uodbc. default_user string
Set the user account of the ODBC internal connection, which can be used by odbc_connect () or odbc_pconnect ().
.


Uodbc. default_pw string
Set the user password for the connection set in ODBC for use by the odbc_connect () or odbc_pconnect () function.
.


Uodbc. allow_persistent boolean
Whether to allow the ODBC database to be connected for a long time (persistent connections) may be affected.
Odbc_pconnect () function.


Uodbc. max_persistent integer
Set a maximum of several ODBC connections for each processing program.


Uodbc. max_links integer
Set a maximum of several ODBC connections for each processing program, including long-term connections.
The following session-related values are supported by PHP 4.x and later versions. In php. ini settings
Fixed.


Session. save_handler
Defines the name of the file for storing session data. The specified value is files.


Session. save_path
Defines the file path for storing session data. The internal value is/tmp.


Session. name
Set the cookie name used by the session. The specified value is PHPSESSID.


Session. auto_start
Set whether the session is automatically enabled. The value is 0 (no ).


Session. lifetime
Set the retention time after the cookie is sent to the browser, in seconds. The internal value is 0, indicating that it is not closed by the browser.
.


Session. serialize_handler
Defines the headers of continuous/uncontiguous data. This function is only used in the WDDX module or PHP. The specified value is
Php.


Session. gc_probability
Set the waste collection (gc, garbage collection) processing probability for each request response. The internal value is 1.


Session. gc_maxlifetime
Sets 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 it is not set for security or other considerations.
Delete. The internal value is 0.


Session. entropy_file
When the session code is set up, an external high-entropy resource or file is used for creation, such
/Dev/random or/dev/urandom.


Session. entropy_length
Sets the number of bits that a session reads from a high-entropy resource. The internal value is 0.


Session. use_cookies
Set whether to change the session into a cookie that exists on the user side. If the 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.