php.ini 中文版第二部分(关于这个配制文件)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 译者 : 松风(silvester) ;
; Email : sf.beyond@Gmail.com ;
; Home : http://hi.baidu.com/ccex ;
; Info : php.ini-recommended(5.2.8) ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; About this file(关于这个文件) ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; This is the recommended, PHP 5-style version of the php.ini-dist file. It
; sets some non standard settings, that make PHP more efficient, more secure,
; and encourage cleaner coding.
; 这个配制文件内的配制项是推荐的, php5版本内置默认值与php.ini-dist文件相同, 当
; 前这个配制文件设置的一些值不是标准的, 但这些配制项能让php更有效率, 更加安全,
; 并且鼓励您写出整洁的代码.
;
; The price is that with these settings, PHP may be incompatible with some
; applications, and sometimes, more difficult to develop with. Using this
; file is warmly recommended for production sites. As all of the changes from
; the standard settings are thoroughly documented, you can go over each one,
; and decide whether you want to use it or not.
; 这个文件的价值是这些设置项, 也许这些设置不能兼容某些以前开发的应用,有些时候它
; 会稍增加开发难度. 不过极力推荐你在产品环境中使用这个配制文件.所有更改的配制项
; 的原默认值均在手册内有记录.
;
; For general information about the php.ini file, please consult the php.ini-dist
; file, included in your PHP distribution.
; 如果想了解关于PHP.INI文件的通用配制信息, 请查阅php.ini-dist文件, 并将它作为你
; 的发行版的配制文件.
;
; This file is different from the php.ini-dist file in the fact that it features
; different values for several directives, in order to improve performance, while
; possibly breaking compatibility with the standard out-of-the-box behavior of
; PHP. Please make sure you read what's different, and modify your scripts
; accordingly, if you decide to use this file instead.
; 当前配制文件与php.ini-dist在细节方面有几个配制值不同, 主要是为了优化性能, 也许
; 其破坏了与标准设置的PHP程序的兼容性. 请你仔细阅读它们的不同, 如果你确认使用它们,
; 要相应的修改你的代码.
;
; - register_long_arrays = Off [Performance][性能]
; Disables registration of the older (and deprecated) long predefined array
; variables ($HTTP_*_VARS). Instead, use the superglobals that were
; introduced in PHP 4.1.0
; 禁止注册过期(反对)的预定义数组变量($HTTP_*_VARS). 请使用超级全局变量作为替代.
;
; - display_errors = Off [Security][安全]
; With this directive set to off, errors that occur during the execution of
; scripts will no longer be displayed as a part of the script output, and thus,
; will no longer be exposed to remote users. With some errors, the error message
; content may expose information about your script, web server, or database
; server that may be exploitable for hacking. Production sites should have this
; directive set to off.
; 这个配制项被设置为关闭, 在整个代码执行的期间不会产生任何错误信息的输出, 因此不会
; 将其暴露给终端用户, 这些错误信息的内容有关于源代码的, Web 服务器的, 或者是数据库
; 服务器,它们极有可能被黑客利用. 在产品环境要将他们设置为off.
;
; - log_errors = On [Security][安全]
; This directive complements the above one. Any errors that occur during the
; execution of your script will be logged (typically, to your server's error log,
; but can be configured in several ways). Along with setting display_errors to off,
; this setup gives you the ability to fully understand what may have gone wrong,
; without exposing any sensitive information to remote users.
; 这个配制项是作为上面的一个补充, 在整个代码执行期间的错误信息将会被记录(通常输出
; 到你的WEB服务器LOG记录内, 不过有几种方法可以对其进行设置). 因为上面将display_errors
; 设置为off, 所以当前这个设置能够让你知道哪里出现了问题, 并且不会将任何敏感的信息
; 暴躁给终端用户.
;
; - output_buffering = 4096 [Performance][性能]
; Set a 4KB output buffer. Enabling output buffering typically results in less
; writes, and sometimes less packets sent on the wire, which can often lead to
; better performance. The gain this directive actually yields greatly depends
; on which Web server you're working with, and what kind of scripts you're using.
; 设置一个4千字节的输出缓存(大约相当于4000个英文字符), 启用输出缓存通常的作用是
; 减少输出操作的次数, 和减少将小的数据包发送到输出, 这常常能获得更好的性能,但这
; 个配置项产生的结果非常依赖于你所使用的WEB服务器.
;
;
; - register_argc_argv = Off [Performance][性能]
; Disables registration of the somewhat redundant $argv and $argc global
; variables.
; 关闭在WEB环境下有些多余的$argv和$argc全局环境变量
;
; - magic_quotes_gpc = Off [Performance][性能]
; Input data is no longer escaped with slashes so that it can be sent into
; SQL databases without further manipulation. Instead, you should use the
; database vendor specific escape string function on each input element you
; wish to send to a database.
; 对输入的数据不进行反斜线转义操作, 以便使发送到数据库的语句没有进行额外
; 处理,作为替代你将使用数据库厂商提供的转义函数对每一个输入元素进行处理然
; 后在将其发送到数据库.
;
; - variables_order = "GPCS" [Performance][性能]
; The environment variables are not hashed into the $_ENV. To access
; environment variables, you can use getenv() instead.
; 当前配制项告诉PHP将哪类外部数据注册为全局变量, 当前配制值没有将环境变量
; 放到$_ENV内, 如果要访问环境变量, 你可以使用getenv()作为替代.
;
; - error_reporting = E_ALL [Code Cleanliness, Security(?)][代码整洁, 安全(?)]
; By default, PHP suppresses errors of type E_NOTICE. These error messages
; are emitted for non-critical errors, but that could be a symptom of a bigger
; problem. Most notably, this will cause error messages about the use
; of uninitialized variables to be displayed.
; 缺省时,PHP不会显示E_NOTICE类型的错误, 这种类型的错误信息代表其是不重要的, 不过
; 有时它会是大问题的前奏. 更多的是, 显示这类错误信息的原因是使用了没有初始化的变
; 量.
;
;
; - allow_call_time_pass_reference = Off [Code cleanliness][代码整洁]
; It's not possible to decide to force a variable to be passed by reference
; when calling a function. The PHP 4 style to do this is by making the
; function require the relevant argument by reference.
; 当调用函数时强制传送变量的引用是不好的做法, php4时这么引用是因为有些函数需要
; 关联的参数.(TODO:也许翻译的不对?)
;
;
; - short_open_tag = Off [Portability]
; Using short tags is discouraged when developing code meant for redistribution
; since short tags may not be supported on the target server.
; 使用短标签进行开发是不提倡的, 因为当发布时目标服务器可能不支持短标签.
;
; 译者 : 松风(silvester) ;
; Email : sf.beyond@Gmail.com ;
; Home : http://hi.baidu.com/ccex ;
; Info : php.ini-recommended(5.2.8) ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; About this file(关于这个文件) ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; This is the recommended, PHP 5-style version of the php.ini-dist file. It
; sets some non standard settings, that make PHP more efficient, more secure,
; and encourage cleaner coding.
; 这个配制文件内的配制项是推荐的, php5版本内置默认值与php.ini-dist文件相同, 当
; 前这个配制文件设置的一些值不是标准的, 但这些配制项能让php更有效率, 更加安全,
; 并且鼓励您写出整洁的代码.
;
; The price is that with these settings, PHP may be incompatible with some
; applications, and sometimes, more difficult to develop with. Using this
; file is warmly recommended for production sites. As all of the changes from
; the standard settings are thoroughly documented, you can go over each on
; and decide whether you want to use it or not.
; 这个文件的价值是这些设置项, 也许这些设置不能兼容某些以前开发的应用,有些时候它
; 会稍增加开发难度. 不过极力推荐你在产品环境中使用这个配制文件.所有更改的配制项
; 的原默认值均在手册内有记录.
;
; For general information about the php.ini file, please consult the php.ini-dist
; file, included in your PHP distribution.
; 如果想了解关于PHP.INI文件的通用配制信息, 请查阅php.ini-dist文件, 并将它作为你
; 的发行版的配制文件.
;
; This file is different from the php.ini-dist file in the fact that it features
; different values for several directives, in order to improve performance, while
; possibly breaking compatibility with the standard out-of-the-box beha
; PHP. Please make sure you read what's different, and modify your scripts
; accordingly, if you decide to use this file instead.
; 当前配制文件与php.ini-dist在细节方面有几个配制值不同, 主要是为了优化性能, 也许
; 其破坏了与标准设置的PHP程序的兼容性. 请你仔细阅读它们的不同, 如果你确认使用它们,
; 要相应的修改你的代码.
;
; - register_long_arrays = Off [Performance][性能]
; Disables registration of the older (and deprecated) long predefined array
; variables ($HTTP_*_VARS). Instead, use the superglobals that were
; introduced in PHP 4.1.0
; 禁止注册过期(反对)的预定义数组变量($HTTP_*_VARS). 请使用超级全局变量作为替代.
;
; - display_errors = Off [Security][安全]
; With this directive set to off, errors that occur during the execution of
; scripts will no longer be displayed as a part of the script output, and thus,
; will no longer be exposed to remote users. With some errors, the error message
; content may expose information about your script, web server, or database
; server that may be exploitable for hacking. Production sites should have this
; directive set to off.
; 这个配制项被设置为关闭, 在整个代码执行的期间不会产生任何错误信息的输出, 因此不会
; 将其暴露给终端用户, 这些错误信息的内容有关于源代码的, Web 服务器的, 或者是数据库
; 服务器,它们极有可能被黑客利用. 在产品环境要将他们设置为off.
;
; - log_errors = On [Security][安全]
; This directive complements the above on
; execution of your script will be logged (typically, to your server's error log,
; but can be configured in several ways). Along with setting display_errors to off,
; this setup gives you the ability to fully understand what may have gone wrong,
; without exposing any sensitive information to remote users.
; 这个配制项是作为上面的一个补充, 在整个代码执行期间的错误信息将会被记录(通常输出
; 到你的WEB服务器LOG记录内, 不过有几种方法可以对其进行设置). 因为上面将display_errors
; 设置为off, 所以当前这个设置能够让你知道哪里出现了问题, 并且不会将任何敏感的信息
; 暴躁给终端用户.
;
; - output_buffering = 4096 [Performance][性能]
; Set a 4KB output buffer. Enabling output buffering typically results in less
; writes, and sometimes less packets sent on the wire, which can often lead to
; better performance. The gain this directive actually yields greatly depends
; on which Web server you're working with, and what kind of scripts you're using.
; 设置一个4千字节的输出缓存(大约相当于4000个英文字符), 启用输出缓存通常的作用是
; 减少输出操作的次数, 和减少将小的数据包发送到输出, 这常常能获得更好的性能,但这
; 个配置项产生的结果非常依赖于你所使用的WEB服务器.
;
;
; - register_argc_argv = Off [Performance][性能]
; Disables registration of the somewhat redundant $argv and $argc global
; variables.
; 关闭在WEB环境下有些多余的$argv和$argc全局环境变量
;
; - magic_quotes_gpc = Off [Performance][性能]
; Input da
; SQL databases without further manipulation. Instead, you should use the
; database vendor specific escape string function on each input element you
; wish to send to a database.
; 对输入的数据不进行反斜线转义操作, 以便使发送到数据库的语句没有进行额外
; 处理,作为替代你将使用数据库厂商提供的转义函数对每一个输入元素进行处理然
; 后在将其发送到数据库.
;
; - variables_order = "GPCS" [Performance][性能]
; The environment variables are not hashed into the $_ENV. To access
; environment variables, you can use getenv() instead.
; 当前配制项告诉PHP将哪类外部数据注册为全局变量, 当前配制值没有将环境变量
; 放到$_ENV内, 如果要访问环境变量, 你可以使用getenv()作为替代.
;
; - error_reporting = E_ALL [Co
; By default, PHP suppresses errors of type E_NOTICE. These error messages
; are emitted for non-critical errors, but that could be a symptom of a bigger
; problem. Most notably, this will cause error messages about the use
; of uninitialized variables to be displayed.
; 缺省时,PHP不会显示E_NOTICE类型的错误, 这种类型的错误信息代表其是不重要的, 不过
; 有时它会是大问题的前奏. 更多的是, 显示这类错误信息的原因是使用了没有初始化的变
; 量.
;
;
; - allow_call_time_pass_reference = Off [Co
; It's not possible to decide to force a variable to be passed by reference
; when calling a function. The PHP 4 style to do this is by making the
; function require the relevant argument by reference.
; 当调用函数时强制传送变量的引用是不好的做法, php4时这么引用是因为有些函数需要
; 关联的参数.(TODO:也许翻译的不对?)
;
;
; - short_open_tag = Off [Portability]
; Using short tags is discouraged when developing co
; since short tags may not be supported on the target server.
; 使用短标签进行开发是不提倡的, 因为当发布时目标服务器可能不支持短标签.
;
浙公网安备 33010602011771号