Php_php.ini_ explanation

Source: Internet
Author: User
Tags bitwise operators eol html tags parse error syslog system log what web server what header

This file must be named ' php.ini ' and placed in the directory specified by the PHPINIDIR directive in httpd.conf.
The latest version of PHP.ini can be viewed in the following two locations:
Http://cvs.php.net/viewvc.cgi/php-src/php.ini-recommended?view=co
Http://cvs.php.net/viewvc.cgi/php-src/php.ini-dist?view=co
Grammar
The syntax of the file is very simple. whitespace characters and lines beginning with semicolons are simply ignored.
Chapter headings (For example: [PHP]) are also simply ignored, even though they may have some meaning in the future.
The format of the instruction is as follows:
directive = value
The instruction name (Directive) is case-sensitive! So "Foo=bar" is different from "Foo=bar".
Value can be:
1. Strings defined in quotation marks (e.g. "foo")
2. A number (integer or floating point, such as: 0, 1, 34,-1, 33.55)
3. A PHP constant (for example: E_all, M_PI)
4. One INI constant (on, Off, none)
5. An expression (for example: E_all & ~e_notice)
INI file uses only: bitwise operators, logical non, parentheses:
| Bit or
& Bit and
~ Bit non-
! Logical Non-
The Boolean flag is opened with on, and off.
An empty string can be used after the equal sign to not write anything, or with the None keyword:
Foo =; Set Foo to an empty string
foo = none; Set Foo to an empty string
Foo = "None"; Set Foo As String ' None '
If you use constants in the instruction values for dynamic extensions (PHP extensions or Zend extensions), you can only use these constants after loading these dynamically extended command lines.
httpd.conf;;
You can also override the value of php.ini in httpd.conf for more flexible configuration:
Php_value name value; set non-bool directives, set value to None to clear previous settings
Php_flag name On|off; only instructions for setting the bool type
PHP constants (such as E_all) can only be used in php.ini, and the corresponding mask values must be used in httpd.conf.
Instructions with the "SYS" flag can only be used in the Global configuration section of httpd.conf,
Instructions with the "INI" flag cannot be used in httpd.conf, they can only be used in php.ini.
==================== Configuration Instruction Detailed =======================================
The set values for each of the following directives are the same as the default values built into the PHP-5.2.0.
That is, if "php.ini" does not exist, or you delete some rows, the default value is the same.

   ;;;;;;;;;;;;
Apache;;
;;;;;;;;;;;;
[Apache]
Only valid when PHP is used as an Apache module.
engine = On
Whether to enable the PHP parsing engine.
The PHP parsing engine can be opened or closed in httpd.conf based on a directory or a virtual host.
last_modified = Off
Whether to place the last modified time of the PHP script in the last-modified answer header.
Xbithack = Off
Regardless of the end of the file, it is parsed as a PHP executable bit group.
child_terminate = Off
Whether the PHP script allows the apache_child_terminate () function to terminate the child process after the request has ended. This directive is available only on UNIX platforms where PHP is installed as a Apache1.3 module. No other circumstances exist.
;;;;;;;;;;;;;
PHP core;;
;;;;;;;;;;;;;
[Php-core-datetime]
The first four configuration options are currently available only for the date_sunrise () and Date_sunset () functions.
date.default_latitude = 31.7667
Default Latitude
date.default_longitude = 35.2333
Default longitude
Date.sunrise_zenith = 90.583333
Default Sunrise Zenith
Date.sunset_zenith = 90.583333
Default Sunset Zenith
Date.timezone =
The default time zone used for all date and time functions when the TZ environment variable is not set.
Mainland China should use "PRC"
The order of precedence for the application time zone is:
1. Time zone set with the Date_default_timezone_set () function (if set)
2. TZ environment variable (if not empty)
3. The value of the directive (if set)
4. PHP Self-speculation (if operating system support)
5. If none of the above is successful, use UTC
[Php-core-assert]
   assert.active = On
Whether to enable assert () assertion evaluation
Assert.bail = Off
Whether to abort the execution of the script when a failure assertion occurs

Assert.callback =
callback function to execute when failure assertion occurs
Assert.quiet_eval = Off
Whether to use quiet evaluation (no error message is displayed, equivalent to error_reporting=0).
If off, the current error_reporting instruction value is used when evaluating an assertion expression.
Assert.warning = On
Whether to warn each failed assertion
[Php-core-safemode]
Security mode is created to address the security issues of shared servers.
But trying to solve this problem in the PHP layer is structurally unreasonable,
The correct approach should be to modify the Web server layer and the operating system layer.
Therefore, the security model was abolished in the PHP6 and intended to be replaced with the OPEN_BASEDIR directive.
Safe_mode = Off
SYS
Whether Safe mode is enabled.
When opened, PHP will check to see if the owner of the current script is the same as the owner of the file being manipulated.
The same allows the operation, and the operation is rejected differently.
Safe_mode_gid = Off
SYS
In Safe mode, the UID comparison check is done by default when accessing files.
In some cases, however, a strict UID check is not appropriate, and a loose GID check is sufficient.
If you want to loosen it up to only GID comparisons, you can open this parameter.
safe_mode_allowed_env_vars = "Php_"
SYS
In safe mode, the user can only change the prefix list of environment variables (comma delimited).
Allowing users to set certain environment variables can lead to potential security vulnerabilities.
Note: If this parameter value is NULL, PHP will allow the user to change any environment variable!
safe_mode_protected_env_vars = "Ld_library_path"
SYS
In safe mode, the user cannot change the list of environment variables (comma delimited).
These variables will be protected even if the safe_mode_allowed_env_vars instruction is set to allow.
Safe_mode_exec_dir = "/usr/local/php/bin"

SYS
In safe mode, only executable programs in this directory allow functions executed by system programs to execute.
These functions are: System, Escapeshellarg, Escapeshellcmd, exec, Passthru,proc_close, Proc_get_status, Proc_nice, Proc_open, PROC_ Terminate, Shell_exec
Safe_mode_include_dir =
SYS
In Safe mode, the Uid/gid check is skipped when the files under this group directory and its subdirectories are included. In other words, if the value here is empty, any files that are not compliant with the Uid/gid are not allowed to be included. The directory set here must already exist in the Include_path directive or be included with the full path.
Multiple directories are separated by a colon (win under a semicolon). The specified limit is actually a prefix, not a directory name, meaning "/DIR/INCL" will allow access to "/dir/include" and "/dir/incls" if you want to control access to a specified directory, then add a slash at the end.
Sql.safe_mode = Off
SYS
Whether to use SQL security mode.
If you open, the database connection function that specifies the default value will use these default values instead of the supported parameters. For each connection function for a different database, refer to the corresponding manual page for the default values.
[Php-core-safe]
   Allow_url_fopen = On
Ini
Whether to allow remote files to open
Allow_url_include = Off
SYS
Whether to allow Include/require remote files.
disable_classes =
Ini
The directive accepts a comma-delimited list of class names to disable a particular class.
disable_functions =
Ini
The directive accepts a comma-delimited list of function names to disable a specific function.
ENABLE_DL = On
SYS
Whether to allow the use of the DL () function. The DL () function is only valid if PHP is installed as an Apache module.
Disabling the DL () function is primarily for security reasons because it bypasses the limits of the OPEN_BASEDIR directive.
The DL () function is always disabled in safe mode, regardless of how it is set here.
expose_php = on
Ini
Whether to expose the fact that PHP is installed on the server (plus its signature in the HTTP header).
It does not have a direct security threat, but it makes the client aware that PHP is installed on the server.
Open_basedir =
SYS
Restrict all files (including the file itself) that PHP allows to operate under this Group directory list.
When a script tries to open a file other than the one specified in the directory tree, it is rejected.
All symbolic connections are parsed, so it is not possible to circumvent this restriction by symbolic connections.
Special value '. ' Specifies that the directory where the script is stored will be treated as a base directory.
But this is a bit risky because the working directory of the script can easily be changed by ChDir ().
For shared servers, it can be very useful to set the directive flexibly in httpd.conf.
A semicolon-delimited directory in Windows, separated by colons in a UNIX system.
As an Apache module, the Open_basedir path in the parent directory is automatically inherited.
The specified limit is actually a prefix, not a directory name,
That means "/DIR/INCL" will allow access to "/dir/include" and "/dir/incls",
If you want to control access to a specified directory, add a slash at the end.
By default, all files are allowed to open.
[Php-core-error]
error_reporting = e_all & ~e_notice

Error reporting level is an overlay of bit fields, it is recommended to use E_all | E_strict
1 E_error Fatal Run-time error
2 e_warning Runtime Warning (non-fatal error)
4 E_parse Compile-time parse error
8 E_notice Runtime Reminders (often bugs, may also be intentional)
E_core_error PHP startup fatal error during initialization
e_core_warning PHP Startup warnings during initialization (non-fatal error)
E_compile_error compile-time fatal error
E_compile_warning Compile-time warning (non-fatal error)
E_user_error user-defined fatal error
E_user_warning user-defined warning (non-fatal error)
1024x768 E_user_notice user-defined reminders (often bugs, may also be intentional)
2048 E_strict Coding Normalization Warning (recommended how to modify to forward compatible)
4096 E_recoverable_error near-fatal run-time error, if not captured, is considered the same as E_error
6143 e_all All errors except E_strict (8191 in PHP6, including all)
track_errors = Off
Whether to save the most recent error or warning message in the variable $php_errormsg.
display_errors = on
Whether to display the error message as part of the output.
On the final published Web site, it is strongly recommended that you turn off this feature and use the error log instead (see below).
Opening this feature on the final published Web site may expose some security information,
For example, the file path, database planning, or other information on your Web service.
display_startup_errors = Off
Whether to display PHP startup errors.
Even if the display_errors instruction is turned on, turning off this parameter will not display PHP startup errors.
It is recommended that you turn off this feature unless you have to use it for debugging.
Report_memleaks = On
Whether to report a memory leak. This parameter only works in PHP that is compiled in debug mode,
and must include e_warning in the error_reporting directive
report_zend_debug = on
No description document yet
Html_errors = On
Whether to use HTML tags in the error message.
Note: Do not use this feature on published sites!
docref_root =; "http://localhost/phpmanual/"
Docref_ext =; ". html
If the html_errors instruction is turned on, PHP will display the hyperlink on the error message.
Link directly to a page that describes the error or the function that caused the error.
You can download PHP manuals from http://www.php.net/docs.php,
and point the docref_root directive to the URL directory where your local manual is located.
You must also set the DOCREF_EXT directive to specify the file's extension (must contain ".").
Note: Do not use this feature on published sites.
error_prepend_string =; " <font color= #f00 > "
String to output before the error message
error_append_string =; " </font> "
String for output after error message
Xmlrpc_errors = Off
Xmlrpc_error_number = 0

No documents yet
[php-core-logging]
Define_syslog_variables = Off
Whether to define various system log variables, such as: $LOG _pid, $LOG _cron, and so on.
A good idea to turn it off to improve efficiency.
You can call the Define_syslog_variables () function at run time to define these variables.
Error_log =
The file to which the error log is logged. The file must be writable to the Web server user.
Syslog indicates logging to the system log (NT event log, syslog under UNIX (3))
If no value is set here, the error is logged to the Web server's error log.
log_errors = Off
Whether the error is logged in the log file, where it is recorded depends on the error_log directive.
It is strongly recommended that you use logging errors instead of direct output in the final published Web site.
This allows you to know that there is a problem, and that you do not expose sensitive information.
Log_errors_max_len = 1024
Sets the maximum length of the error source that is attached in the error log that is associated with the error message.
The values set here are valid for both displayed and logged errors and $php_errormsg.
Set to 0 to allow unlimited lengths.
ignore_repeated_errors = Off
Whether to ignore duplicate error messages when logging error logs.
The error message must appear on the same line in the same file before it is considered duplicates.
Ignore_repeated_source = Off
Whether duplicate error sources are ignored when repeating error messages are ignored.
[Php-core-mail]
To make the message function available, PHP must be able to access the SendMail program at compile time.
If you use a different mail program, such as QMail or postfix, make sure that the appropriate SendMail packaging is used. PHP first searches the system's PATH environment variable for sendmail, and then searches in the following order:/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
It is strongly recommended to find sendmail in path.
In addition, the user who compiles PHP must be able to access the SendMail program.
SMTP = "localhost"
The host name or IP address of the SMTP server used to send mail in the mail () function. For Win32 only.
Smtp_port = 25
The port number of the SMTP server. For Win32 only.
Sendmail_from =
The e-mail address in the "From:" header used when sending the message. For Win32 only
This option also sets the "Return-path:" header.
Sendmail_path = "-t-i"
SYS
For UNIX only, parameters can also be supported ("Sendmail-t-i" is the default)
The path to the SendMail program, usually "/usr/sbin/sendmail or/usr/lib/sendmail".
The Configure script will attempt to locate the program and set it to its default value, but if it fails, it can be set here.
Systems that do not use sendmail should set this directive to the SendMail alternative, if any.
For example, qmail users can usually be set to "/var/qmail/bin/sendmail" or "/var/qmail/bin/qmail-inject".
Qmail-inject does not require any options to handle the message correctly.
mail.force_extra_parameters =
The mandatory specified parameter value is passed as an additional parameter to the SendMail library.
These parameters will always replace the 5th parameter of mail (), even in safe mode.
[Php-core-resourcelimit]
Default_socket_timeout =

Default socket timeout (seconds)
Max_execution_time =
Maximum allowable execution time per script (seconds), 0 means no limit.
This parameter helps prevent inferior scripts from endlessly consuming server resources.
This directive only affects the run time of the script itself, any other time that is spent outside of the script running,
such as the use of System ()/sleep () functions, database queries, file uploads, etc., are not included.
In Safe mode, you cannot change this setting at run time with Ini_set ().

memory_limit = 16M
The maximum number of bytes of memory that a script can request (using K and M as units).
This helps prevent inferior scripts from consuming all the memory on the server.
To be able to use the directive, you must use the "--enable-memory-limit" configuration option at compile time.
If you want to cancel the memory limit, you must set it to-1.
When the directive is set, the Memory_get_usage () function becomes available.
max_input_time =-1
The maximum allowable time (in seconds) for each script to parse the input data (POST, GET, upload).
-1 means no limit.
post_max_size = 8M
Maximum byte length allowed for post data. This setting also affects file uploads.
If the post data exceeds the limit, then $_post and $_files will be empty.
To upload a large file, the value must be greater than the value of the upload_max_filesize instruction.
If memory throttling is enabled, the value should be less than the value of the memory_limit instruction.
realpath_cache_size = 16K
SYS
Specifies the Realpath (normalized absolute path name) buffer size used by PHP.
You should increase this value to improve performance on systems in which PHP opens a large number of files.
Realpath_cache_ttl = 120
SYS
Realpath the lifetime of information in the buffer (in seconds).
Systems that rarely change files can increase this value to improve performance.
[Php-core-fileupload]
   file_uploads = on
SYS
Whether to allow HTTP file uploads.
See Upload_max_filesize, Upload_tmp_dir, post_max_size directive
upload_max_filesize = 2M
Maximum size of files allowed to be uploaded.
Upload_tmp_dir =
SYS
The temporary directory where files are stored when the file is uploaded (must be a user-writable directory of the PHP process).
If not specified, PHP uses the system default temp directory.
[Php-core-magicquotes]
PHP6 will cancel the magic quotes, equivalent to the following instructions all off
MAGIC_QUOTES_GPC = On
Whether to use automatic string escape for input Get/post/cookie data (' ' "NULL).
The settings here will automatically affect the value of the $_gest $_post $_cookie array.
If this instruction is opened at the same time as the magic_quotes_sybase instruction, only the single quotation mark ("') is escaped to (" "),
Other special characters will not be escaped, i.e. ("NULL") will remain intact!!
It is recommended that you turn off this attribute and use a custom filter function.
magic_quotes_runtime = Off
Whether to use automatic string escaping (' ' "NULL) for data generated from external resources at run time.
If you open this directive, most functions will be escaped from external resources (databases, text files, etc.).
For example: data obtained with SQL queries, data obtained with the EXEC () function, and so on---www.bianceng.cn
If this instruction is opened at the same time as the magic_quotes_sybase instruction, only the single quotation mark ("') is escaped to (" "),
Other special characters will not be escaped, i.e. ("NULL") will remain intact!!
It is recommended that you turn off this attribute and use a custom filter function, depending on your situation.
magic_quotes_sybase = Off
Whether to use automatic string escaping in Sybase form (denoted by "")
[Php-core-highlight]
highlight.bg = "#FFFFFF"
Highlight.comment = "#FF8000"
Highlight.default = "#0000BB"
highlight.html = "#000000"
Highlight.keyword = "#007700"
highlight.string = "#DD0000"
The color of the syntax highlighting mode (typically used to display the. phps file).
As long as you can be <font color=xxx> accept things can work normally.
[Php-core-langue]
   Short_open_tag = On
Whether to allow the use of the "&LT;??>" Short logo. Otherwise you must use the "<?php?>" long logo.
Do not use short marks unless your PHP program is only running in a controlled environment and is for your own use only.
If you want to use PHP in conjunction with XML, you can choose to turn this option off to easily embed "<?xml ...?" > ", otherwise you have to use PHP to output: <? Echo ' <?xml version= ' 1.0 ';?>
This directive also affects the abbreviation form "<?=", it and "&LT; echo "equivalent, you must also open the short mark to use it.
asp_tags = Off
Whether to allow ASP-style markup "<%%>", which also affects the abbreviated form "<%=".
This directive will be removed in PHP6
arg_separator.output = "&"
The delimiter used to separate parameters in the URL generated by PHP.
In addition, you can use "&" or "," and so on.
arg_separator.input = "&"
A list of separators to use when PHP resolves variables in the URL.
Each character in a string is treated as a separator.
Also can use ",&" and so on.
allow_call_time_pass_reference = On
Whether to force arguments to be passed by reference when the function is called (you will receive a warning each time you use this attribute).
PHP opposes this practice and is no longer supported in future versions because it affects the cleanliness of the code.
The encouraged approach is to explicitly specify which parameters are passed by reference in the function declaration.
We encourage you to turn off this option to ensure that your scripts will still work correctly in future versions of the language.
Auto_globals_jit = On
is created only when using the $_server and $_env variables (not automatically when the script is started).
If these two arrays are not used in the script, opening the instruction will gain performance gains.
The register_globals and Register_long_arrays directives must be turned off in order for the directive to take effect.
Auto_prepend_file =
Auto_append_file =

Specifies the file name that is automatically parsed before/after the main file. An empty representation disables the attribute.
The file is included in the same way that the include () function is called, so the value of the include_path instruction is used.
Note: If the script terminates with exit (), the automatic suffix will not occur. ---www.bianceng.cn
Variables_order = "Egpcs"
PHP registers the order of environment, GET, POST, Cookie, and Server variables.
Use E, G, P, C, S, respectively, to register from left to right, and overwrite the old value with the new value.
For example, setting the "GP" will result in the use of a post variable to overwrite the get variable with the same name.
and completely ignores environment, cookies, and Server variables.
It is recommended to use "GPC" or "gpcs" and use the getenv () function to access environment variables.
register_globals = Off
Whether to register E, G, P, C, and S variables as global variables.
Opening this directive can cause serious security problems unless your script is checked very carefully.
Pre-defined Hyper-global variables are recommended: $_env, $_get, $_post, $_cookie, $_server
The directive is affected by the Variables_order directive.
This directive has been removed from PHP6.
register_argc_argv = on
Whether to declare $ARGV and $ARGC global variables (containing information using the Get method).
It is recommended that you do not use these two variables and turn off the instruction to improve performance.
register_long_arrays = on
Whether to enable legacy long-array (http_*_vars).
Encourage the use of short predefined hyper-global arrays and turn off the attribute for better performance.
This directive has been removed from PHP6.
Always_populate_raw_post_data = Off
Whether the $http_raw_post_data variable is always generated (raw POST data).
Otherwise, this variable is only generated when it encounters data that does not recognize the MIME type.
However, a better way to access the raw post data is php://input.
$HTTP _raw_post_data the form data for enctype= "Multipart/form-data" is not available.
Unserialize_callback_func =
If the deserialization processor needs to instantiate an undefined class,
The callback function specified here will be called by Unserialize () with the name of the undefined class as a parameter.
So as not to get an incomplete "__php_incomplete_class" object.
If no function is specified here, or if the specified function does not contain (or implements) the undefined class, a warning message will be displayed.
Therefore, the directive is set only when it is really necessary to implement such a callback function.
To disable this feature, simply place a blank.
y2k_compliance = On
Whether to force open 2000 adaptation (which may cause problems in non-Y2K adapted browsers).
Zend.ze1_compatibility_mode = Off
Whether to use a compatible Zend engine I (PHP 4.x) mode.
This affects the copying, construction of objects (objects with no attributes produce false or 0), and comparisons.
In compatibility mode, objects are passed by value instead of by default by reference.
precision =
The number of significant digits displayed by floating-point data.
serialize_precision = 100
The precision (number of significant digits) when storing floating-point and double-precision data in a serialized format.
The default value ensures that floating-point data is not lost when it is decoded by the deserialization program.

[Php-core-outputcontrol]
Output control functions are useful, especially if you have already exported the information and sent an HTTP header.
The output control function does not work on HTTP headers sent by functions such as header () or Setcookie (),
It only affects information similar to the Echo () function output and the information embedded in the PHP code.
Implicit_flush = Off
Whether the PHP output layer is required to automatically refresh the data after each output block.
This is equivalent to automatically calling the flush () function after each print (), Echo (), and HTML block.
Opening this option has a serious impact on the performance of the program, and is usually recommended for debugging purposes only.
In the execution mode of the CLI SAPI, the directive defaults to on.
output_buffering = 0
The output buffer size (in bytes). The recommended value is 4096~8192.
Output buffering allows you to send HTTP headers (including cookies) even after you output the body content.
The cost is that the output layer slows down a little bit.
Setting output buffering can reduce writes and, in some cases, reduce the sending of network packets.
The actual benefit of this parameter depends largely on what Web server you are using and what kind of script it is.
Output_handler =
Redirects the output of all scripts to an output handler function.
For example, when redirecting to the Mb_output_handler () function, the character encoding is transparently converted to the specified encoding.
Once you have specified the output handler here, the output buffer will be automatically opened (output_buffering=4096).
Note 0: Only PHP built-in functions can be used here, and custom functions should be specified in the script using Ob_start ().
Note 1: A portable script cannot rely on the directive, but should use the Ob_start () function to explicitly specify an output handler function.
Using this instruction may cause errors in some scripts that you are unfamiliar with.
NOTE 2: You cannot use both "Mb_output_handler" and "Ob_iconv_handler" two output processing functions at the same time.
You cannot also use the "ob_gzhandler" output processing function and the Zlib.output_compression directive at the same time.
Note 3: If you use the Zlib.output_handler directive to turn on zlib output compression, the directive must be empty.
[Php-core-directory]
Doc_root =
SYS
The "root directory" of PHP. Valid only when not empty.
If safe_mode=on, files outside this directory are rejected.
This directive must be set (see the Security Section in the manual) if Force_redirect is not specified when compiling PHP and is run in CGI on a non-IIS server.
The alternative is to use the Cgi.force_redirect directive.
include_path = ".:/ Path/to/php/pear "
Specifies a set of directories for require (), include (), Fopen_with_path () functions to find files.
The format is similar to the system's Path environment variable (under UNIX separated by colons, separated by semicolons under windows):
UNIX: "/path1:/path2"
Windows: "Path1;path2"
Use '. ' In the Include path A relative path can be allowed, which represents the current directory.
User_dir =
SYS
Tell PHP which directory to look for when opening a script with/~username, only valid when not empty.
That is, the basic directory name of the PHP file under the user directory, for example: "Public_html"
Extension_dir = "/path/to/php"
SYS
The directory that holds the extension library (module), which is the directory that PHP uses to find the dynamic expansion module.
The default is "C:/PHP5" under windows
[Php-core-http]
Default_mimetype = "Text/html"
Default_charset =; " gb2312 "
PHP automatically outputs "content-type:text/html" HTTP headers by default.
If you set the Default_charset directive to "gb2312",
Then it will automatically output "content-type:text/html; charset=gb2312 ".
[Php-core-unicode]
   Detect_unicode = On
No documents yet
[Php-core-misc]
   auto_detect_line_endings = Off
Whether to let PHP automatically detect line terminator (EOL).
If your script has to deal with the Macintosh file,
Or you run on the Macintosh while you're working on UNIX or Win32 files,
Opening this command allows PHP to automatically detect EOL so that the fgets () and file () functions work correctly.
But it also results in incompatible behavior for people who use a carriage return (CR) as a project delimiter under a UNIX system.

cgi.rfc2616_headers = 0
Specifies what header PHP uses when sending HTTP response codes.
0 means sending a "Status:" header, which is supported by Apache and other Web servers.
If set to 1, PHP uses the RFC2616 standard header.
Keep its default value of 0 unless you know what you're doing
cgi.nph = Off
Whether to force the "status:200" status code to be sent for all requests in CGI mode.
fastcgi.impersonate = Off
FastCGI in IIS supports the ability to mimic client security tokens.
This enables IIS to define the security context of the request on which the runtime is based.
mod_fastcgi in Apache does not support this feature (03/17/2002)
If running in IIS is set to ON, the default is off.
fastcgi.logging = on
Whether the connection is logged through fastcgi.
[Php-core-weirdy]
These options exist only in the document, but not in the output of the phpinfo () function
async_send = Off
Whether to send asynchronously.
from =; "[email protected]"
Define the password for anonymous FTP (an email address)
near core modules;;
[Pcre]
Perl-compatible Regular expression module
Pcre.backtrack_limit = 100000
The maximum number of backtracking (backtracking) steps for the pcre.
Pcre.recursion_limit = 100000
The maximum recursive (recursion) depth of the pcre.
If you set the value to very high, it will probably deplete the stack space of the process, causing PHP to crash.
[Session]
Unless a variable is registered with Session_register () or $_session.
Otherwise, no session record is added automatically, regardless of whether session_start () is used.
An object that includes a resource variable or a circular reference contains an object that refers to itself and cannot be saved in the session.
The register_globals directive affects the storage and recovery of session variables.
Session.save_handler = "Files"
The processor name that stores and retrieves the data associated with the session. The default is file ("files").
If you want to use a custom processor (such as a database-based processor), "User" is available.
There is a processor that uses PostgreSQL: http://sourceforge.net/projects/phpform-ext/
Session.save_path = "/tmp"
The parameters passed to the storage processor. For the files processor, this value is the path to the creation of the session data file.
The default is the temporary folder path under Windows.
You can use "N; [MODE;] /path "This mode defines the path (n is an integer).
n represents a subdirectory with n-level depth, instead of saving all data files in one directory.
[MODE;] Optionally, you must use the 8 binary number, which is the default of 600 (=384), which represents the maximum number of session files saved per directory.
This is a good idea to improve the performance of a lot of sessions

Original address: http://legolas.blog.51cto.com/2682485/493917

Php_php.ini_ explanation

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.