Description of the options for Php3.ini and php.ini configuration files

Source: Internet
Author: User
Tags execution functions garbage collection odbc mysql sybase sybase database version
PHP.ini or Php3.ini is the set file that PHP reads when it starts. The storage path for this file is
/usr/local/lib/. In the PHP 3.x version of the profile is Php3.ini, and in the PHP 4.x version instead
Ini. If PHP is installed as a server module, it is read when the Web server starts execution and then
No longer read, so change settings to restart the Web server. If you use a standalone PHP CGI method, you
Read it once every time.
To see the current system settings, you can see it with phpinfo (). The following options are set


Php_value Name Value
Sets the name and value of the variable. This option is available at the rear of the PHP 4.x version.


Php_flag name On|off
Set flags Boolean variable options. This option is available at the rear of the PHP 4.x version.


Php_admin_value Name Value
Set the Apache profile variable. Originally in the. htaccess set to this option set. This option requires
PHP 4.x version of the rear can be used.


Php_admin_flag name On|off
Set the Boolean variable to be the flag. This option is available at the rear of the PHP 4.x version.


Asp_tags Boolean
Sets whether the PHP program analyzes the markup (tag) <%%> the ASP Script syntax. This option is available in 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
Setting this option allows the specified file to be appended to the original PHP program for automatic execution. If the PHP program is useful in
Exit () function, the specified file is not executed. The parameter string is the file that specifies the automatic execution.


Auto_prepend_file string
Setting this option allows the specified file to be executed automatically before the original PHP program. The parameter string is the specified from
Dynamic execution of the file.


Cgi_ext string
This option sets the secondary file name for the CGI program.


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


Doc_root string
Sets the server file and the root directory where the PHP file is placed.


Engine Boolean
This option requires the use of the Apache module mode for PHP. You can set whether you want to use the PHP engine. In
httpd.conf Add Php3_engine On/off can also set a directory or a virtual platform to use PHP
The interpreter.


Error_log string
This option is used to set the error log file. The parameter string is the file name on the UNIX system. Windows NT will
The record is recorded in the log of the Event Viewer. Windows 95/98 does not support system logging.


error_reporting integer
This option is used to set the system record level. The parameter integer is the level of the series flag, which can be added to a
Up, the default value is 7, see the following table
Series Description
1 General Errors
2 General Warning
4 Profiling Errors
8 Non-critical warnings

Open_basedir string
This option is used to set the lowest directory available for PHP access. From the file or directory below the specified directory, PHP
Program to access. This option is used primarily for system security considerations. Parameter string is the desired limit for the
The bottommost directory node. It is noteworthy that in a UNIX system, if the file or directory under that node has a symbolic chain
Knot (symbolic Link) may give you a discount for the purpose of using this option, so consider the design of the catalog,
is also an important task of webmaster. The default value is that all files are accessible. After the PHP 3.0.7 version, you can
To set up multiple underlying directories.


Gpc_order string
Set up the sequence and rules of the Get/post/cookie three kinds of modules. The parameter string is the rule that you want to set, example
For example, "GP" means ignoring cookies and substituting a POST for the Access Method (methods)
Get.


Ignore_user_abort string
The default value is off. Used to set the user's end line to continue processing when the transfer is not complete.


Include_path string
Search for files in the PHP program for require, include, and Fopen_with_path functions. In
The slash direction in UNIX or Windows is different.


Log_errors Boolean
Specifies whether a program error should be recorded in the log file.


MAGIC_QUOTES_GPC Boolean
Set the special characters for the Get/post/cookie three modules, including single quotes, double quotes, backslashes, and empty words
Meta (NUL) whether to automatically add backslashes when overflow characters.


Magic_quotes_runtime Boolean
Set the return data to automatically add backslashes when overflow characters.


Magic_quotes_sybase Boolean
Set the single quotes in Sybase data to automatically add backslashes when overflow characters.


Max_execution_time integer
Set the maximum execution time for the program. The unit is seconds.


Memory_limit integer
Set the maximum number of memory used by the program.


Short_open_tag Boolean
Set whether to use short PHP tags (?>). If you do not use, you must use the <?php as the opening of the program
Header, 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 $php _errormsg with the global variable.


Track_vars Boolean
Open this option to allow the user to enter the string automatically parsed into the variable, rather than dealing with their own.


Upload_tmp_dir string
Specifies the upload file staging path.


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


Warn_plus_overloading Boolean
If this option is turned on, the word Ging can only be connected by a period (.) in English, but not by a plus sign (+).


SMTP string
In the Windows series Job system, specifies the SMTP server to use for mail functions. Parameters
String is the name of the SMTP server.


Sendmail_from string
Set the From: Word falsify Windows Series job system uses mail functions.


Sendmail_path string
Sets the placement path for the SendMail program. such as/usr/sbin/sendmail.


Safe_mode Boolean
Set PHP to execute in safe mode.


Safe_mode_exec_dir string
Sets the path for Safe Mode program execution.


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


Debugger.port string
Sets the port (port) of the remote debug server.


Debugger.enabled Boolean
Set whether it can be a debug mode.


ENABLE_DL Boolean
This option is valid using the Apache module method. The DL () letter used to set PHP
Type can function. When the system is in Safe Mode (safe-mode), this option does not enable or use DL ()
function.


Extension_dir string
Sets the path of the dynamic function.


Extension string
The dynamic extension that PHP will load when it starts.


Mysql.allow_persistent Boolean
Setting whether to allow MySQL repository long line (persistent connections) will affect
Mysql_pconnect () function.


Mysql.max_persistent integer
Set up each handler to keep a few MySQL long lines.


Mysql.max_links integer
Set up a few MySQL lines for each handler, including long lines.


Msql.allow_persistent Boolean
Setting whether to allow mSQL database long line (persistent connections) will affect
Msql_pconnect () function.


Msql.max_persistent integer
Set up each handler to keep a few msql long lines.


Msql.max_links integer
Set up a few msql lines for each handler, including long lines.


Pgsql.allow_persistent Boolean
Setting whether to allow Postgres database long line (persistent connections) will affect
Pg_pconnect () function.


Pgsql.max_persistent integer
Set up each handler to keep a few Postgres long lines.


Pgsql.max_links integer
Set up a few Postgres lines for each handler, including long lines.


Sybase.allow_persistent Boolean
Setting whether to allow the Sybase database long line (persistent connections) will affect
Sybase_pconnect () function.


Sybase.max_persistent integer
Set up each handler to keep a few Sybase long lines.


Sybase.max_links integer
Set up a few Sybase lines for each handler, including long lines.


Sybct.allow_persistent Boolean
Set whether to allow SYBASE-CT database long line (persistent connections), the default is open
Of


Sybct.max_persistent integer
Set up each handler to keep a few sybase-ct long lines. A default value of-1 means no limit.


Sybct.max_links integer
Set up a few sybase-ct lines for each handler, including long lines. The default value is-1, which means no
There are limits.


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


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


Sybct.login_timeout integer
Set the login time that SYBASE-CT can use. The default value is 1 minutes.


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


Sybct.hostname string
Set SYBASE-CT to connect machine name. Default value is not set


Ifx.allow_persistent Boolean
Setting whether to allow the Informix repository long line (persistent connections) will affect
Ifx_pconnect () function.


Ifx.max_persistent integer
Set up each handler to keep a few Informix long lines.


Ifx.max_links integer
Set up a few Informix lines for each handler, including long lines.


Ifx.default_host string
Sets the server name for the Informix default line, for Ifx_connect () or ifx_pconnect () functions
Use.


Ifx.default_user string
Set up the user account for the Informix default line for Ifx_connect () or ifx_pconnect () functions
Use.


Ifx.default_password string
Set the user password for the Informix default line for Ifx_connect () or ifx_pconnect () functions
Use.


Ifx.blobinfile Boolean
Set Informix Long bit object mode, 0 tables in memory; 1 tables in file. can also be in the PHP program
Use the Ifx_blobinfile_mode () function to modify the.


Ifx.textasvarchar Boolean
Set the Informix text mode default value, the 0 table returns the Blob's code, and the 1 table returns the varchar string.
You can also use the Ifx_textasvarchar () function in the PHP program to modify the settings.


Ifx.byteasvarchar Boolean
Set the Informix bit tuple mode default value, 0 table returns the BLOB code; 1 Table returns varchar word
String. You can also use Ifx_byteasvarchar () in your PHP program to modify the settings.


Ifx.charasvarchar Boolean
Sets whether the trailing spaces of Informix return strings should be automatically removed.


Ifx.nullformat Boolean
Sets the return mode for NULL fields, true to return the string null,false the form to return the string "". Also
Can be modified with Ifx_nullformat () in the PHP program.


Bcmath.scale integer
Sets the number of decimal places for the BC high precision function library.


Browscap string
Set the browser's ability to open the file name.


uodbc.default_db string
Sets the database name for the ODBC default connection, for Odbc_connect () or odbc_pconnect () functions to enable
Use.


Uodbc.default_user string
Set the user account for the ODBC default connection, for Odbc_connect () or odbc_pconnect () functions to enable
Use.


UODBC.DEFAULT_PW string
Set the user password for the ODBC default connection, for Odbc_connect () or odbc_pconnect () functions to enable
Use.


Uodbc.allow_persistent Boolean
Setting whether to allow ODBC repository long line (persistent connections) will affect
Odbc_pconnect () function.


Uodbc.max_persistent integer
Set up each handler to keep a few ODBC long lines.


Uodbc.max_links integer
Set up a few ODBC connections for each handler, including long lines.
The following settings related to the session are supported by the version of PHP above 4.x. The php.ini in the set
In the gear set.


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


Session.save_path
Defines the file path for the session store data. The default value is/tmp.


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


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


Session.lifetime
Set the save time, in seconds, after the cookie is sent to the browser. The default value is 0, which means that until the browser closes
Closed.


Session.serialize_handler
Define continuous/solution continuous data headers, this feature is only WDDX module or PHP internal use. The default value is
Php.


Session.gc_probability
Set the probability of processing each required return time (GC, garbage collection). The default value is 1.


Session.gc_maxlifetime
Set 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, it is set
Delete. The default value is 0.


Session.entropy_file
When setting up the session code, use an external high entropy value resource or file to build, for example, on UNIX systems
/dev/random or/dev/urandom.


Session.entropy_length
Sets the number of bytes read by the session from a high entropy value resource. The default value is 0.


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


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.