PHP.ini 设备文件解析

    添加时间:2013-7-7 点击量:

    [PHP]


    ;;;;;;;;;;;;;;;;;;;
    ; About php.ini   ;
    ;;;;;;;;;;;;;;;;;;;
    ; PHPs initialization file, generally called php.ini, is responsible for 
    ; configuring many of the aspects of PHPs behavior.    
    ;PHP的初始化文件,定名为php.ini,负责设备PHP的各类行动和功能。


    ; PHP attempts to find and load this configuration a number of locations.
    ; PHP会测验测验从某个地位加载设备
    ; The following is a summary of its search order: 
    ; php.ini的加载是有次序的,PHP会遵守以下次序依次加载
    ; 1. SAPI module specific location.    
    ;    SAPI模块的地位
    ; 2. The PHPRC environment variable. (As of PHP 5.2.0)  
    ;    景象变量PHPRC PHPRC即php.ini的查找路径
    ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
    ;    Windows注册表的指定地位
    ; 4. Current working directory (except CLI)
    ;    当前工作目次(CLI除外)
    ; 5. The web servers directory (for SAPI modules), or directory of PHP
    ;    web办事器目次(SAPI模块)或者PHP目次地位
    ; (otherwise in Windows)
    ; 6. The directory the --with-config-file-path compile time option, or the
    ; Windows directory (C:\windows or C:\winnt)
    ;    编译时 –with-config-file-path的指定目次
    ; See the PHP docs for more specific information.
    ; http://php.net/configuration.file


    ; The syntax of the file is extremely simple.  Whitespace and Lines
    ; beginning with a semicolon are silently ignored (as you probably guessed).
    ; Section headers (e.g. [Foo]) are also silently ignored, even though
    ; they might mean something in the future.
    ; 文档注释体式格式:空白字符和用分号开端的行被被忽视(这个你可能已经猜到了)。 章节题目(例如 : [Foo])也被忽视,即使将来它们可能 有某种的意义。


    ; Directives following the section heading [PATH=/www/mysite] only
    ; apply to PHP files in the /www/mysite directory.  Directives
    ; following the section heading [HOST=www.example.com] only apply to
    ; PHP files served  www.example.com.  Directives set in these
    ; special sections cannot be overridden by user-defined INI files or
    ; at runtime. Currently, [PATH=] and [HOST=] sections only work under
    ; CGI/FastCGI.


    ;PHP感化域:指令[PATH=/www/mysite]仅仅实用于目次/www/mysite中的php文件; [HOST=www.example.com]仅仅对www.example.com中 的php文件起感化。今朝,[PATH=]和[HOST=]仅仅工作在CGI和FastCGI中。特此外字段不克不及对用户零丁的设置覆盖,即设置以用户零丁 设置的为准。
    ; http://php.net/ini.sections



    ; Directives are specified using the following syntax:
    ; directive = value
    ; Directive names are case sensitive - foo=bar is different FOO=bar.
    ; Directives are variables used to configure PHP or PHP extensions.
    ; There is no name validation.  If PHP cant find an expected
    ; directive because it is not set or is mistyped, a default value will be used.


    ;PHP指令申明:语法:指令=值;指令区分大小写;指令定义的变量用于设备PHP或PHP扩大;无名称验证,若是php找不到指定 的指令或指令设备错误,则启用默认值;


    ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
    ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
    ; (e.g. E_ALL & ~E_NOTICE), a quoted string (bar), or a reference to a
    ; previously set variable or directive (e.g. ¥{foo})


    ; 指令的值可所以:字符串,数字,php常量,INI常量 (On,Off,True,False,Yes,No,None),带引号的字符串,先前设置的变量或者指令引用;


    ; Expressions in the INI file are limited to bitwise operators and parentheses:
    ; |  bitwise OR
    ; ^  bitwise XOR
    ; &  bitwise AND
    ; ~  bitwise NOT
    ; !  boolean NOT


    ; Boolean flags can be turned on using the values 1, On, True or Yes.
    ; They can be turned off using the values 0, Off, False or No.


    ; An empty string can be denoted by simply not writing anything after the equal
    ; sign, or by using the None keyword:


    ;  foo =         ; sets foo to an empty string
    ;  foo = None    ; sets foo to an empty string
    ;  foo = None  ; sets foo to the string None


    ;表达式限于操纵符或者括号| (OR)^(XOR)&(AND)~(NOT)!(NOT);布尔值:真可所以1,On,Ture,Yes假值可认为 0,Off,False,No;空值:可所以None或者空白(即什么都不写);


    ; If you use constants in your value, and these constants belong to a
    ; dynamically loaded extension (either a PHP extension or a Zend extension),
    ; you may only use these constants after the line that loads the extension.


    ;若是你在值中应用常量,并且这些常量属于动态加载的模块(PHP扩大或 Zend扩大),你只能在扩大中加载了后再应用这个变量(即变量要先定义后应用)


    ;;;;;;;;;;;;;;;;;;;
    ; About this file ;
    ;;;;;;;;;;;;;;;;;;;
    ; PHP comes packaged with two INI files. One that is recommended to be used
    ; in production environments and one that is recommended to be used in
    ; development environments.


    ; php.ini-production contains settings which hold security, performance and
    ; best practices at its core. But please be aware, these settings may break
    ; compatibility with older or less security conscience applications. We
    ; recommending using the production ini in production and testing environments.


    ; php.ini-development is very similar to its production variant, except its
    ; much more verbose when it comes to errors. We recommending using the
    ; development version only in development environments as errors shown to
    ; application users can inadvertently leak otherwise secure information.
    ;PHP自带了两个文件,一个用于临盆景象,另一个用于开辟景象。php.ini-production在内核中包含了安然,机能和 做法的设置;然则请重视,这些设置可能破损和老版本的兼容性和极少的安然良心应用;我们建议在临盆和测试景象中应用此文件。php.ini- development和临盆版本很是类似,除了它失足后供给的具体信息;建议仅在开辟景象中应用此文件,不然错误输出到法度导致用户在不经意间泄漏安然 信息。
    ;;;;;;;;;;;;;;;;;;;
    ; Quick Reference ;
    ;;;;;;;;;;;;;;;;;;;
    ; The following are all the settings which are different in either the production
    ; or development versions of the INIs with respect to PHPs default behavior.
    ; Please see the actual settings later in the document for more details as to why
    ; we recommend these changes in PHPs behavior.


    ; 快速参考
    ;以下是关于在INI文件中临盆和开辟景象中的默认行动的差别。请查看文档后面的实际设置来获得更多具体的信息,从而可以看出我们做这些 变更的原因。


    ; allow_call_time_pass_reference
    ;   Default Value: On
    ;   Development Value: Off
    ;   Production Value: Off
    ; allow_call_time_pass_reference 在函数调用时参数被遵守引用传递时是否发出警告。默认ON开启,开辟景象中是OFF,正式公布景象中是OFF


    ; display_errors
    ;   Default Value: On
    ;   Development Value: On
    ;   Production Value: Off
    ; display_errors 显示所有错误信息,默认ON开启,开辟景象中是on,正式公布景象中是off


    ; display_startup_errors
    ;   Default Value: Off
    ;   Development Value: On
    ;   Production Value: Off
    ; display_startup_errors 显示PHP启动过程中的错误信息 默认off,开辟景象中是on,正式公布景象中是off


    ; error_reporting
    ;   Default Value: E_ALL & ~E_NOTICE
    ;   Development Value: E_ALL | E_STRICT
    ;   Production Value: E_ALL & ~E_DEPRECATED


    ; html_errors
    ;   Default Value: On
    ;   Development Value: On
    ;   Production value: Off


    ; html_errors 在错误信息中封闭HTML标签  默认on,开辟景象中是on,正式公布景象中是off


    ; log_errors
    ;   Default Value: Off
    ;   Development Value: On
    ;   Production Value: On


    ;log_errors 设置是否将脚本运行的错误信息记录到办事器错误日记或者error_log之中 默认off,开辟景象on,正式公布景象on


    ; magic_quotes_gpc
    ;   Default Value: On
    ;   Development Value: Off
    ;   Production Value: Off


    ;magic_quotes_gpc 设置是否主动为GPC(get,post,cookie)传来的数据中的\\\\加上反斜线进行转义 默认on,开辟景象off,正式公布景象off


    ; max_input_time
    ;   Default Value: -1 (Unlimited)
    ;   Development Value: 60 (60 seconds)
    ;   Production Value: 60 (60 seconds)


    ; max_input_time 设置POST、GET以及PUT体式格式接管数据时候限制 默认-1 不限制,开辟景象60秒,正式公布景象60秒


    ; output_buffering
    ;   Default Value: Off
    ;   Development Value: 4096
    ;   Production Value: 4096


    ; output_buffering 设置输出缓存限制 off:封闭PHP输出缓存,On: 打开无穷大的输出缓存; 默认off,开辟景象打开大小为4096Byte的输出缓存


    ; register_argc_argv
    ;   Default Value: On
    ;   Development Value: Off
    ;   Production Value: Off


    ; register_argc_argv 设置是否可以或许给脚本传递参数 默认on,开辟景象off,正式公布景象off


    ; register_long_arrays
    ;   Default Value: On
    ;   Development Value: Off
    ;   Production Value: Off


    ; register_long_arrays  设定 PHP 是否注册已过期的 ¥HTTP__VARS 之类的预定义变量 默认on,开辟景象off,正式公布景象off


    ; request_order
    ;   Default Value: None
    ;   Development Value: GP
    ;   Production Value: GP


    ; request_order PHP注册GET,POST和COOKIE变量的REQUEST数组的值。注册是由左到右,新的值将覆盖旧值。 默认为none,开辟景象为GP,正式景象为GP GP默示¥_REQUEST只包含¥_GET和¥_POST而不包含¥_COOKIE


    ; session.bug_compat_42
    ;   Default Value: On
    ;   Development Value: On
    ;   Production Value: Off
    ;session.bug_compat_42 设定register_globals被禁用的景象下,是否容许您初始一个处于全局的session变量;默认on,开辟景象on,正式公布景象off


    ; session.bug_compat_warn
    ;   Default Value: On
    ;   Development Value: On
    ;   Production Value: Off


    ;session.bug_compat_warn设定register_globals被禁用的景象下,是否容许在初始一个处于全局的session变量时,显示警告信息;默认on,开辟景象on,正式公布景象off


    ; session.gc_divisor
    ;   Default Value: 100
    ;   Development Value: 1000
    ;   Production Value: 1000
    ;session.gc_divisor 设置会话初始化时启动 gc(garbage collection 垃圾收受接管)过程的概率的除数。session.gc_divisor 与 session.gc_probability 合起来定义了在每个会话初始化时启动 gc(garbage collection 垃圾收受接管)过程的概率。此概率用 gc_probability/gc_divisor 策画得来。例如 1/100 意味着在每个恳求中有 1% 的概率启动 gc 过程。


    ; session.hash_bits_per_character
    ;   Default Value: 4
    ;   Development Value: 5
    ;   Production Value: 5
    ;session.hash_bits_per_character容许用户定义将二进制散列数据转换为可读的格局时每个字符存放几许个比特。


    ; short_open_tag
    ;   Default Value: On
    ;   Development Value: Off
    ;   Production Value: Off
    ;short_open_tag 设定是否容许 <? 标签.  不然,只有 <?php 和 <script> 标签被认为是PHP脚本.


    ; track_errors
    ;   Default Value: Off
    ;   Development Value: On
    ;   Production Value: Off
    ; track_errors 设定是否在¥php_errormsg中存储错误/警告信息


    ; url_rewriter.tags
    ;   Default Value: a=href,area=href,frame=src,form=,fieldset=
    ;   Development Value: a=href,area=href,frame=src,input=src,form=fakeentry
    ;   Production Value: a=href,area=href,frame=src,input=src,form=fakeentry


    ;url_rewriter.tags 指定在应用透明 SID 支撑时哪些 HTML 标识表记标帜会被批改以参加会话 ID;


    ; variables_order
    ;   Default Value: EGPCS
    ;   Development Value: GPCS
    ;   Production Value: GPCS
    ; variables_order 指定PHP记录GET,POST,Cookie,Environment和Built-in这些变量的次序;以G,P,C,E和S代表,凡是以EGPCS或GPC的体式格式引用,按从左到右记录,新的记录覆盖较旧的


    ;;;;;;;;;;;;;;;;;;;;
    ; php.ini Options  ;
    ;;;;;;;;;;;;;;;;;;;;
    ; Name for user-defined php.ini (.htaccess) files. Default is .user.ini
    ;user_ini.filename = .user.ini
    ;用户可以自定义的php.ini文件(。htaccess文件)的名称。默认值是“.user.ini”


    ; To disable this feature set this option to empty value
    ;user_ini.filename =



    ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
    ;user_ini.cache_ttl = 300


    ;读取.user.ini后会缓存起来,按照user_ini.cache_ttl断定从头读取的时候



    ;;;;;;;;;;;;;;;;;;;;
    ; Language Options ;
    ;;;;;;;;;;;;;;;;;;;;


    ;是否使PHP脚本说话在Apache办事器下有效
    ; Enable the PHP scripting language engine under Apache.
    ; http://php.net/engine
    engine = On



    ; This directive determines whether or not PHP will recognize code between
    ; <? and ?> tags as PHP source which should be processed as such. Its been
    ; recommended for several years that you not use the short tag short cut and
    ; instead to use the full <?php and ?> tag combination. With the wide spread use
    ; of XML and use of these tags by other languages, the server can become easily
    ; confused and end up parsing the wrong code in the wrong context. But because
    ; this short cut has been a feature for such a long time, its currently still
    ; supported for backwards compatibility, but we recommend you dont use them.
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off
    ; http://php.net/short-open-tag
    short_open_tag = Off


    ; short_open_tag 是否容许应用<? ?>短标识。不然必须应用<?php ?>长标识。
    ; 除非你的php法度仅在受控景象下运行,且只供本身应用,不然请不要应用短标识表记标帜。
    ; 若是要和XML连络应用PHP,可以选择封闭此选项以便利直接嵌入<?xml ... ?>,
    ; 不然你必须用PHP来输出:<? echo <?xml version=1.0; ?>
    ; 本指令也会影响到缩写情势<?=,它和<? echo等价,要应用它也必须打开短标识表记标帜。



    ; Allow ASP-style <% %> tags.
    ; http://php.net/asp-tags
    as p_tags = Off


    ; 是否容许ASP风格的标识表记标帜<% %>,这也会影响到缩写情势<%=。
    ; PHP6中将删除此指令


    ; The number of significant digits displayed in floating point numbers.
    ; http://php.net/precision
    precision = 14
    ; 浮点型数据显示的有效位数。


    ; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
    ; http://php.net/y2k-compliance


    y2k_compliance = On


    ; 是否强迫打开2000年适应(可能在非Y2K适应的浏览器中导致题目)。


    ; Output buffering is a mechanism for controlling how much output data
    ; (excluding headers and cookies) PHP should keep internally before pushing that
    ; data to the client. If your applications output exceeds this setting, PHP
    ; will send that data in chunks of roughly the size you specify.
    ; Turning on this setting and managing its maximum buffer size can yield some
    ; interesting side-effects depending on your application and web server.
    ; You may be able to send headers and cookies after youve already sent output
    ; through print or echo. You also may see performance benefits if your server is
    ; emitting less packets due to buffered output versus PHP streaming the output
    ; as it gets it. On production servers, 4096 bytes is a good setting for performance
    ; reasons.
    ; Note: Output buffering can also be controlled via Output Buffering Control
    ;   functions.
    ; Possible Values:
    ;   On = Enabled and buffer is unlimited. (Use with caution)
    ;   Off = Disabled
    ;   Integer = Enables the buffer and sets its maximum size in bytes.
    ; Note: This directive is hardcoded to Off for the CLI SAPI
    ; Default Value: Off
    ; Development Value: 4096
    ; Production Value: 4096
    ; http://php.net/output-buffering
    output_buffering = 4096


    ; 输出缓冲区大小(字节)。建议值为4096~8192。
    ; 输出缓冲容许你甚至在输出正文内容之后再发送HTTP头(包含cookies)。
    ; 其价格是输出层减慢一点点速度。
    ; 设置输出缓冲可以削减写入,有时还能削减收集数据包的发送。
    ; 这个参数的实际收益很大程度上取决于你应用的是什么Web办事器以及什么样的脚本。


    ; You can redirect all of the output of your scripts to a function.  For
    ; example, if you set output_handler to mb_output_handler, character
    ; encoding will be transparently converted to the specified encoding.
    ; Setting any output handler automatically turns on output buffering.
    ; Note: People who wrote portable scripts should not depend on this ini
    ;   directive. Instead, explicitly set the output handler using ob_start().
    ;   Using this ini directive may cause problems unless you know what script
    ;   is doing.
    ; Note: You cannot use both mb_output_handler with ob_iconv_handler
    ;   and you cannot use both ob_gzhandler and zlib.output_compression.
    ; Note: output_handler must be empty if this is set On !!!!
    ;   Instead you must use zlib.output_handler.
    ; http://php.net/output-handler
    ;output_handler =


      ; 将所有脚本的输出重定向到一个输出处理惩罚函数。
      ; 比如,重定向到mb_output_handler()函数时,字符编码将被透明地转换为指定的编码。
      ; 一旦你在这里指定了输出处理惩罚法度,输出缓冲将被主动打开(output_buffering=4096)。
      ; 重视0: 此处仅能应用PHP内置的函数,自定义函数应在脚本中应用ob_start()指定。
      ; 重视1: 可移植脚本不克不及依附该指令,而应应用ob_start()函数明白指定输出处理惩罚函数。
      ;        应用这个指令可能会导致某些你不熟悉的脚本失足。
      ; 重视2: 你不克不及同时应用mb_output_handler和ob_iconv_handler两个输出处理惩罚函数。
      ;        你也不克不及同时应用ob_gzhandler输出处理惩罚函数和zlib.output_compression指令。
      ; 重视3: 若是应用zlib.output_handler指令开启zlib输出紧缩,该指令必须为空。
    ; Transparent output compression using the zlib library
    ; Valid values for this option are off, on, or a specific buffer size
    ; to be used for compression (default is 4KB)
    ; Note: Resulting chunk size may vary due to nature of compression. PHP
    ;   outputs chunks that are few hundreds bytes each as a result of
    ;   compression. If you prefer a larger chunk size for better
    ;   performance, enable output_buffering in addition.
    ; Note: You need to use zlib.output_handler instead of the standard
    ;   output_handler, or otherwise the output will be corrupted.
    ; http://php.net/zlib.output-compression
    zlib.output_compression = Off



    ; http://php.net/zlib.output-compression-level
    ;zlib.output_compression_level = -1


    ; 应用zlib库对输出进行紧缩
    ; 对此选项的有效值是 off, on, 或者字节数 (用来紧缩的缓冲大小 , 默认是 4KB)
    ; 重视: 成果的chunk大小可能因为紧缩对象的大小而不合.
    ;       PHP输出块的大小一般紧缩之后每个大小时几百个字节.
    ;       若是你藉由一个大块的堆大小来获取更好的机能, 须要额外的打开 output_buffering 选项.
    ; 重视: 你必须应用 zlib.output_handler 来调换标准的
    ;       output_handler, 不然输出可能会有题目.


    ; You cannot specify additional output handlers if zlib.output_compression
    ; is activated here. This setting does the same as output_handler but in
    ; a different order.
    ; http://php.net/zlib.output-handler
    ;zlib.output_handler =


    ; 这里激活 zlib.output_compression 之后,你无法再指定额外的输出处理惩罚.
    ; 这个设置和 output_handler 一样,然则处理惩罚次序不合.



    ; Implicit flush tells PHP to tell the output layer to flush itself
    ; automatically after every output block.  This is equivalent to calling the
    ; PHP function flush() after each and every call to print() or echo() and each
    ; and every HTML block.  Turning this option on has serious performance
    ; implications and is generally recommended for debugging purposes only.
    ; http://php.net/implicit-flush
    ; Note: This directive is hardcoded to On for the CLI SAPI
    implicit_flush = Off


    ; 是否请求PHP输出层在每个输出块之后主动刷新数据。
    ; 这等效于在每个 print()、echo()、HTML块 之后主动调用flush()函数。
    ; 打开这个选项对法度履行的机能有严重的影响,凡是只推荐在调试时应用。
    ; 在CLI SAPI的履行模式下,该指令默认为 On 。


    ; The unserialize callback function will be called (with the undefined class
    ; name as parameter), if the unserializer finds an undefined class
    ; which should be instantiated. A warning appears if the specified function is
    ; not defined, or if the function doesnt include/implement the missing class.
    ; So only set this entry, if you really want to implement such a
    ; callback-function.
    unserialize_callback_func =


    ; 若是解序列化处理惩罚器须要实例化一个不决义的类,
    ; 这里指定的回调函数将以该不决义类的名字作为参数被unserialize()调用,
    ; 以免获得不完全的__PHP_Incomplete_Class对象。
    ; 若是这里没有指定函数,或指定的函数不包含(或实现)那个不决义的类,将会显示警告信息。
    ; 所以仅在确切须要实现如许的回调函数时才设置该指令。
    ; 若要禁止这个特点,只需置空即可。


    ; When floats & doubles are serialized store serialize_precision significant
    ; digits after the floating point. The default value ensures that when floats
    ; are decoded with unserialize, the data will remain the same.
    serialize_precision = 17
    ; 将浮点型和双精度型数据序列化存储时的精度(有效位数)。
    ; 默认值可以或许确保浮点型数据被解序列化法度解码时不会丧失数据。


    ; This directive allows you to enable and disable warnings which PHP will issue
    ; if you pass a value by reference at function call time. Passing values by
    ; reference at function call time is a deprecated feature which will be removed
    ; PHP at some point in the near future. The acceptable method for passing a
    ; value by reference to a function is by declaring the reference in the functions
    ; definition, not at call time. This directive does not disable this feature, it
    ; only determines whether PHP will warn you about it or not. These warnings
    ; should enabled in development environments only.
    ; Default Value: On (Suppress warnings)
    ; Development Value: Off (Issue warnings)
    ; Production Value: Off (Issue warnings)
    ; http://php.net/allow-call-time-pass-reference
    allow_call_time_pass_reference = Off


    ; 是否在函数调用时按引用传递参数(每次应用此特点都邑收到一条警告)。
    ; php否决这种做法,并在PHP6里删除了该指令(相当于设为Off),因为它影响到了代码的整洁。
    ; 激劝的办法是在函数声明里明白指定哪些参数按引用传递。
    ; 我们激劝你封闭这一选项,以包管你的脚本在将来版本的说话里仍能正常工作。


    ; Safe Mode
    ; http://php.net/safe-mode
    safe_mode = Off
    ; 是否启用安然模式。
    ; 打开时,PHP将搜检当前脚本的拥有者是否和被操纵的文件的拥有者雷同,
    ;雷同则容许操纵,不合则拒绝操纵。



    ; By default, Safe Mode does a UID compare check when
    ; opening files. If you want to relax this to a GID compare,
    ; then turn on safe_mode_gid.
    ; http://php.net/safe-mode-gid
    safe_mode_gid = Off


    ; 在安然模式下,默认在接见文件时会做UID斗劲搜检。
    ; 但有些景象下严格的UID搜检反而是不合适的,宽松的GID搜检已经足够。
    ; 若是你想将其放宽到仅做GID斗劲,可以打开这个参数。



    ; When safe_mode is on, UID/GID checks are bypassed when
    ; including files this directory and its subdirectories.
    ; (directory must also be in include_path or full path must
    ; be used when including)
    ; http://php.net/safe-mode-include-dir
    safe_mode_include_dir =


    ; When safe_mode is on, only executables located in the safe_mode_exec_dir
    ; will be allowed to be executed via the exec family of functions.
    ; http://php.net/safe-mode-exec-dir
    safe_mode_exec_dir =


    ; 在安然模式下,只有该目次下的可履行法度才容许被履行体系法度的函数履行。
    ; 这些函数是:system, escapeshellarg, escapeshellcmd, exec, passthru,



    ; Setting certain environment variables may be a potential security breach.
    ; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
    ; the user may only alter environment variables whose names begin with the
    ; prefixes supplied here.  By default, users will only be able to set
    ; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
    ; Note:  If this directive is empty, PHP will let the user modify ANY
    ;   environment variable!
    ; http://php.net/safe-mode-allowed-env-vars
    safe_mode_allowed_env_vars = PHP_


    ; 在安然模式下,用户仅可以更改的景象变量的前缀列表(逗号分隔)。
    ; 容许用户设置某些景象变量,可能会导致潜伏的安然漏洞。
    ; 重视: 若是这一参数值为空,PHP将容许用户更改随便率性景象变量!


    ; This directive contains a comma-delimited list of environment variables that
    ; the end user wont be able to change using putenv().  These variables will be
    ; protected even if safe_mode_allowed_env_vars is set to allow to change them.
    ; http://php.net/safe-mode-protected-env-vars
    safe_mode_protected_env_vars = LD_LIBRARY_PATH


    ; 在安然模式下,用户不克不及更改的景象变量列表(逗号分隔)。
    ; 这些变量即使在safe_mode_allowed_env_vars指令设置为容许的景象下也会获得保护。


    ; open_basedir, if set, limits all file operations to the defined directory
    ; and below.  This directive makes most sense if used in a per-directory
    ; or per-virtualhost web server configuration file. This directive is
    ; NOT affected by whether Safe Mode is turned On or Off.
    ; http://php.net/open-basedir
    ;open_basedir =


    ; 将PHP容许操纵的所有文件(包含文件自身)都限制在此组目次列表下。
    ; 当一个脚本试图打开一个指定目次树之外的文件时,将遭到拒绝。
    ; 所有的符号连接都邑被解析,所以不成能经由过程符号连接来避开此限制。
    ; 特别值.指定了存放该脚本的目次将被当做基准目次,
    ; 但这有些危险,因为脚本的工作目次可以随便马虎被chdir()改变。
    ; 对于共享办事器,在httpd.conf中针对不合的虚拟主机或目次灵活设置该指令将变得很是有效。
    ;在Windows顶用分号分隔目次,UNIX体系顶用冒号分隔目次。
    ; 作为Apache模块时,父目次中的open_basedir路径将主动被持续。
    ; 指定的限制实际上是一个前缀,而非一个目次名,
    ; 也就是说/dir/incl将容许接见/dir/include和/dir/incls,
    ; 若是您将接见把握在一个指定的目次,那么请在结尾加上一个斜线。
    ; 默认是容许打开所有文件。


    ; This directive allows you to disable certain functions for security reasons.
    ; It receives a comma-delimited list of function names. This directive is
    ; NOT affected by whether Safe Mode is turned On or Off.
    ; http://php.net/disable-functions
    disable_functions =


    ; disable_functions 指令接管一个用逗号分隔的函数名列表,以禁用特定的函数。



    ; This directive allows you to disable certain classes for security reasons.
    ; It receives a comma-delimited list of class names. This directive is
    ; NOT affected by whether Safe Mode is turned On or Off.
    ; http://php.net/disable-classes
    disable_classes =


    ; disable_classes 指令接管一个用逗号分隔的类名列表,以禁用特定的类。


    ; Colors for Syntax Highlighting mode.  Anything thats acceptable in
    ; <span style=color: ???????> would work.
    ; http://php.net/syntax-highlighting
    ;highlight.string  = #DD0000
    ;highlight.comment = #FF9900
    ;highlight.keyword = #007700
    ;highlight.bg      = #FFFFFF
    ;highlight.default = #0000BB
    ;highlight.html    = #000000


    ; 语法高亮模式的色彩(凡是用于显示 .phps 文件)。
    ; 只要能被<font color=xxx>接管的器材就能正常工作。



    ; If enabled, the request will be allowed to complete even if the user aborts
    ; the request. Consider enabling it if executing long requests, which may end up
    ; being interrupted by the user or a browser timing out. PHPs default behavior
    ; is to disable this feature.
    ; http://php.net/ignore-user-abort
    ;ignore_user_abort = On


    ; 是否即使在用户中断恳求后也对峙完成全部恳求。
    ; 在履行一个长恳求的时辰该当推敲打开该它,
    ; 因为长恳求可能会导致用户半途中断或浏览器超时。



    ; Determines the size of the realpath cache to be used by PHP. This value should
    ; be increased on systems where PHP opens many files to reflect the quantity of
    ; the file operations performed.
    ; http://php.net/realpath-cache-size
    ;realpath_cache_size = 16k


    ;;realpath_cache_size 指定PHP应用的realpath(规范化的绝对路径名)缓冲区大小。
    ; 在PHP打开多量文件的体系上该当增大该值以进步机能。



    ; Duration of time, in seconds for which to cache realpath information for a given
    ; file or directory. For systems with rarely changing files, consider increasing this
    ; value.
    ; http://php.net/realpath-cache-ttl
    ;realpath_cache_ttl = 120


    ; realpath缓冲区中信息的有效期(秒)。
    ; 对文件很少变革的体系,可以增大该值以进步机能。



    ; Enables or disables the circular reference collector.
    ; http://php.net/zend.enable-gc
    zend.enable_gc = On


    ;设定是否开启PHP的垃圾收受接管机制

    读书,不要想着实用,更不要有功利心。读书只为了自身的修养。邂逅一本好书如同邂逅一位知己,邂逅一个完美之人。有时心生敬意,有时怦然心动。仿佛你心底埋藏多年的话,作者替你说了出来,你们在时光深处倾心相遇的一瞬间,情投意合,心旷神怡。
    分享到: