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