;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 译者  :  松风(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.
;     使用短标签进行开发是不提倡的, 因为当发布时目标服务器可能不支持短标签.
;

转载于:https://www.cnblogs.com/silvester/archive/2009/12/30/1688682.html

php.ini 中文版第二部分(关于这个配制文件)相关推荐

  1. 《Programming Ruby 中文版第二版》P577页singleton_method_undefined方法说明有点问题

    "当一个singleton方法在这个接受者中没有定义(??)时,singleton_method_undefined作为回调函数会被调用" 这是书上P577页的说法,看看官网的原文 ...

  2. [转载]最完整PHP.INI中文版

    [转载]最完整PHP.INI中文版 http://www.21andy.com/blog/20090718/1344.html 最完整PHP.INI中文版 适用于 php-5.2 的 php.ini ...

  3. php 忽略加载动态某个目录,限定某个目录禁止解析php 、限制user_agent 、php的配制文件、PHP的动态扩展模块...

    找到路径,然后对其进行配制: 设置时区:date.timezone 把它改成:date.timezone =Asia/Shanghai 或:date.timezone =Asia/Chongqing ...

  4. Spring:多配制文件的使用

    ApplicationContext.xml文件,后续会代码添加,会导致代码过长,所以提供了多配制文件的开发方式 多配制文件,提供多个配置文件,有放DAO,有放Service,有放Action 上面只 ...

  5. 第二讲 命令源码文件

    此为 <极客时间&Go语言核心36讲> 个人笔记,具体课程详见极客时间官网. Table of Contents generated with DocToc 第二讲 命令源码文件 ...

  6. Hibernate bean 对象配制文件

    Hibernate bean 对象配制文件 class Person{private int pid; } 1 配制主键 <?xml version="1.0" encodi ...

  7. Spring , Spring mybatis 配制文件 模板

    2019独角兽企业重金招聘Python工程师标准>>> `### Spring , Spring mybatis 配制文件 模板 <?xml version="1.0 ...

  8. Python对csv、ini、xml、excel等格式文件操作用例

    Python文件操作相关 文件操作 文件夹和路径 csv格式文件 ini格式文件 xml格式文件 excel文件 1. 文件操作 在学习文件操作之前,先来回顾一下编码的相关以及先关数据类型的知识. 字 ...

  9. 解析php.ini 中文版

    php.ini对应的内容如下: ;;;;;;;;;;;; ;;  语法  ;; ;;;;;;;;;;;; ; 该文件的语法非常简单.空白字符和以分号开始的行被简单地忽略. ; 章节标题(例如: [ph ...

最新文章

  1. docker清空为none的镜像
  2. Cordova打包的Vue项目在IOS无法拉起支付宝和微信支付
  3. C语言判断一个数是否是回文数Palindrome算法(附完整源码)
  4. 堪称艺术品级的应用开发框架,Abp有望超越Spring?
  5. chroot函数使用_PHP chroot()函数与示例
  6. 作者:孙傲冰(1978-),男,博士,东莞中国科学院云计算产业技术创新与育成中心电子政务事业部副研究员...
  7. 33 WM配置-策略-出库策略6-定义过期日期策略H(SLED)
  8. oracle的homes在哪里配置,Oracle字符集 简介
  9. mysql 触发器 for each row 理解_MySQL触发器中的“ FOR EACH ROW”如何工作?
  10. mysql 替换全部标内容_Mysql SQL 替换标签内容
  11. 同时安装 Python 2 和 Python 3环境下 pip 的使用
  12. Ubuntu 安装永中Office2009个人版
  13. vue当前浏览器是否为ie_vue判断当前浏览器为IE低版本,给出升级提示;IE11及其他浏览器正常使用...
  14. HTML创建表格及合并单元格
  15. Error : connect Time out
  16. U-boot 对UEFI的支持
  17. ZZULIOJ:1088: 手机短号 (多实例)
  18. 在Golang里如何实现结构体成员指针到结构体自身指针的转换
  19. java管理系统中期报告_基于Java的图书馆管理系统的设计-中期报告
  20. 程序员的书都辣么厚,怎么读?

热门文章

  1. js map遍历 修改对象里面的值_求职季之你必须要懂的原生JS(上)
  2. automapper java 有什么_对象映射工具AutoMapper介绍
  3. matlab中读文件的行数_[转载]MATLAB中获取大型文本文件行数方法研究(转)
  4. python讲1020逆序输出_手把手带你学 Python3(九)| 快速实现数据处理的不二工具(文末有彩蛋)...
  5. mysql 5.5 主从双向同步,请教mysql 定时 双向 主从同步問題
  6. linux运行炉石传说,使用Lutris在Linux上玩炉石传说
  7. win10创建新的计算机用户名和密码忘了,Win10 2004中要使用本计算机用户必须输入用户名和密码选项不见了如何恢复?...
  8. Linux中光盘使用的文件类型,linux下mount命令使用详解---linux挂载光盘等文件系统...
  9. java futher多线程_Java多线程系列--“JUC集合”05之 ConcurrentSkipListMap
  10. HALCON单目标定