PHP.ini Chinese Version (2) for php-5.2

Source: Internet
Author: User
PHP.ini Chinese version (ii) for php-5.2

; [Updated 2008-3-2]
;=====================================================================
;; ============================= 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.5.
; That is, if ' php.ini ' does not exist, or if you delete some rows, the default value is the same.


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Apache;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Apache]
; only valid when PHP is used as an Apache module .
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.

Engine = On
; Whether to enable the PHP parsing engine.
; Tip: You can open or close the PHP parsing engine 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.



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 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.
; As a result, safe mode is abolished in PHP6 and Open_basedir-based security protection is used.
; This part of the instruction has been completely deleted in PHP6

Safe_mode= Off
; 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
; 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_"
; 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"
; In safe mode, the user cannot change the list of environment variables (comma delimited).
; These variables, even in Safe_mode_allowed_env_varsInstructions are also protected if they are set to allow.

Safe_mode_exec_dir= "/usr/local/php/bin"
; 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=
; 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,
; 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.


[Php-core-safe]
Allow_url_fopen= On
; Whether to allow remote files to open

Allow_url_include= Off
; Whether to allow Include/require remote files.

disable_classes=
; The directive accepts a comma-delimited list of class names to disable a particular class.

disable_functions=
; The directive accepts a comma-delimited list of function names to disable a specific function.

ENABLE_DL= On
; 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.
; The directive was removed in the PHP6, which is equivalent to set to OFF.

expose_php= On
; 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=
; 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 useful to set the directive flexibly for different virtual hosts or directories 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.

Sql.safe_mode= Off
; 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.

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