php.ini

[PHP]


;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; php的初始化文件,一般叫作php.ini,負責配置php不少層面的行爲


; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of PHP
; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt)
; See the PHP docs for more specific information.
; http://php.NET/configuration.file
; php在多個位置嘗試加載這個配置文件
; 下面是php加載這個文件時的搜索順序:
; 1. SAPI模塊特定的位置
; 2. PHPRC環境變量(PHP5.2.0開始)
; 3. windows下一系列的預約義的註冊表鍵(PHP5.2.0開始)
; 4. 當前工做目錄(除了CLI)
; 5. 網絡服務器目錄(針對SAPI模塊)或者PHP目錄(otherwise in Windows)
; 6. 編譯時--with-config-file-path選項所指的目錄或者windows目錄(C:\windows or C:\winnt)
; 查看PHP文檔得到更多詳細信息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 from 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.
; http://php.net/ini.sections
; 標題[PATH=/www/mysite]後的指令只應用於/www/mysite目錄下的PHP文件,標題[HOST=www.example.com]後的指令只應用於;在javascript

; www.example.com上的PHP文件,這些特殊的節下面設置的指令不能夠被用戶自定義的INI文件覆寫,或在運行時被重寫。目前[PATH=] 和 php

; [HOST=]只在CGI/FastCGI下工做html

http://php.net/ini.sections


; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
; Directives are variables used to configure PHP or PHP extensions.
; There is no name validation.  If PHP can't find an expected
; directive because it is not set or is mistyped, a default value will be used.
; 指令規定使用下面的語法:
; directive = value
; 指令的名字是大小寫敏感的,好比foo=bar 和 FOO=bar 是不同的
; 指令是用於配置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常量(如E_ALL or M_PI),INI文件定義的一個常量(On, Off, True, False, Yes, No 和 None),或者是一個表java

; 達式(如E_ALL & ~E_NOTICE),引用字符串,或指向先前定義的變量或指令的引用


; Expressions in the INI file are limited to bitwise operators and parentheses:
; 這個INI文件中的表達式僅僅可使用位運算和括號
; |  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.
; 布爾標識能夠用值1,On,True或者Yes打開,而且能夠用0,Off,False或No關閉

; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
; 一個空字符串能夠用在等號後面表示不賦值或者使用「None」這個關鍵字來表示

;  foo =         ; sets foo to an empty string
;  foo = None    ; sets foo to an empty string
;  foo = "None"  ; sets foo to the string '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文件,其中一個建議用在正式上線的環境中,另外一個建議用在開發環境中

; 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-production擁有對安全、性能和對核心的最佳實踐的設置,可是請注意,這些設置可能在較老或具備較低安全性的應用上會失去兼容性,所node

; 以咱們推薦在正式產品和測試環境中都使用php.ini-productionmysql


; php.ini-development is very similar to its production variant, except it is
; much more verbose when it comes to errors. We recommend using the
; development version only in development environments, as errors shown to
; application users can inadvertently leak otherwise secure information.
; php.ini-development與production十分類似,只是當錯誤發生時,它顯示的越詳細。咱們建議僅僅在開發環境中使用它,由於展現給用戶的錯誤信git

; 息可能會不經意間泄露一些安全信息。

; This is php.ini-production INI file.

;;;;;;;;;;;;;;;;;;;
; Quick Reference ; 快速參考
;;;;;;;;;;;;;;;;;;;
; The following are all the settings which are different in either the production
; or development versions of the INIs with respect to PHP's default behavior.
; Please see the actual settings later in the document for more details as to why
; we recommend these changes in PHP's behavior.
; 下面是全部關於PHP的默認行爲的設置,這些設置在INI文件的production和development版本是不同的

; display_errors 顯示錯誤指令
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; display_startup_errors  開啓錯誤報告指令
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; error_reporting  設定報告的錯誤類型
;   Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
;   Development Value: E_ALL
;   Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT

; html_errors  是否在錯誤信息上使用html標記
;   Default Value: On
;   Development Value: On
;   Production value: On

; log_errors  將錯誤信息記錄進日誌
;   Default Value: Off
;   Development Value: On
;   Production Value: On

; max_input_time  每一個腳本解析輸入數據(POST, GET, upload)的最大容許時間(秒)
;   Default Value: -1 (Unlimited)
;   Development Value: 60 (60 seconds)
;   Production Value: 60 (60 seconds)


; output_buffering  輸出緩衝區大小
;   Default Value: Off
;   Development Value: 4096
;   Production Value: 4096

; register_argc_argv 是否聲明$argv和$argc全局變量(包含用GET方法的信息)
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; request_order  請求順序
;   Default Value: None
;   Development Value: "GP"
;   Production Value: "GP"

; session.gc_divisor
;   Default Value: 100
;   Development Value: 1000
;   Production Value: 1000

; session.hash_bits_per_character
;   Default Value: 4
;   Development Value: 5
;   Production Value: 5


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

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

; 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"

; variables_order
;   Default Value: "EGPCS"
;   Development Value: "GPCS"
;   Production Value: "GPCS"

;;;;;;;;;;;;;;;;;;;;
; php.ini Options  ; php.ini選項
;;;;;;;;;;;;;;;;;;;;
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
; 用戶自定義的php.ini(.htaccess)文件的文件名,默認爲".user.ini"
;user_ini.filename = ".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)
; 用戶自定義的php.ini文件生存週期(單位:秒),默認爲300秒
;user_ini.cache_ttl = 300

;;;;;;;;;;;;;;;;;;;;
; Language Options ; 語言選項
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
; 使Apache下PHP腳本語言引擎有效
; 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. It is
; generally recommended that <?php and ?> should be used and that this feature
; should be disabled, as enabling it may result in issues when generating XML
; documents, however this remains supported for backward compatibility reasons.
; Note that this directive does not control the <?= shorthand tag, which can be
; used regardless of this directive.
; 這個指令決定是否PHP會將標籤<?和?>之間的代碼識別爲PHP應該執行的源,一般建議使用<?php 和 ?>,而禁止掉這個特性,由於它可能致使在生web

; 成XML文檔時出現問題。而後爲了向後兼容,它如今仍是被支持的。注意,這個指令並不控制<?=這個速寫標籤,它可以在這個指令的限制以外使用

; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag = Off

; Allow ASP-style <% %> tags.
; 容許ASP風格的標籤<% %>
; http://php.net/asp-tags
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
; 浮點數有效位數
; http://php.net/precision
precision = 14

; 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 application's 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 you've 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.
;輸出緩存是一個控制PHP在向客戶端輸出數據(除了頭文件和cookies)時,應該在內部緩存多少數據的一個機制。若是你的應用輸出超出這個設置,正則表達式

;PHP會將那些數據大體按照你設置的大小分塊輸出。打開這個設置和管理它的最大緩衝區大小可能產生一些有趣的反作用,這取決於您的應用程序和算法

;web服務器。在你經過print和echo輸出後你仍能夠發送頭部和cookies。若是由於buffered output versus PHP streaming the output as it gets it

;你的服務器發送更少的數據包,你會看到性能優點。在生產服務器上,對於性能來講4096 bytes(字節)是一個好的配置

; 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
; 注意:輸出緩存也能夠經過輸出緩存控制函數受到控制。
; 可能的值
; On = 啓動而且緩衝區沒有限制(謹慎使用)
; Off = 關閉
; Integer = 啓動緩存並設置它的最大緩衝字節數
output_buffering = 4096

; 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.
;你能夠將你全部的腳本輸出重定向到一個函數。例如,若是你設置output_handler爲「mb_output_handler」,字符編碼會被透明的轉化爲指定編

;碼。設置任何輸出處理程序會自動打開輸出緩存。

; 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.
;注意:編寫便攜式腳本的人不該該依賴於這個ini指令,取而代之的是,使用ob-start()明確的設置輸出處理程序。除非你知道腳本在作什麼,不然將有

;可能出現問題。
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
;   and you cannot use both "ob_gzhandler" and "zlib.output_compression".
注意:你不能夠同時使用"mb_output_handler" 和 "ob_iconv_handler",也不能同時使用"ob_gzhandler" 和 "zlib.output_compression"
; Note: output_handler must be empty if this is set 'On' !!!!
;   Instead you must use zlib.output_handler.
;注意:output_handler必須爲空若是這裏被設置爲‘On’!!!你必須使用zlib.output_handler
; http://php.net/output-handler
;output_handler =

; 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)
;透明的輸出壓縮使用zlib庫,這個選項的有效參數有Off,On或者是一個明確的用於壓縮的緩衝值(默認是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.
;注意:結果因爲壓縮的塊大小可能會有所不一樣。PHP輸出壓縮後的幾百字節大小的塊,若是爲了更好的性能你想要更大的塊大小,你能夠另外使用

;output_buffering
; Note: You need to use zlib.output_handler instead of the standard
;   output_handler, or otherwise the output will be corrupted.
;注意:你須要使用zlib.output_handler而不是標準的output_handler,不然將會損壞輸出
; http://php.net/zlib.output-compression
zlib.output_compression = Off

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

; 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.
;若是激活了zlib.output_compression,你就不能夠指定額外的輸出處理程序。這個設置和output_handler作了一樣的事,只是順序不一樣
; http://php.net/zlib.output-handler
;zlib.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.
;隱式沖洗告訴PHP去告訴輸出層在每次輸出塊以後自動刪除緩存。這與在每一次調用print()或者echo()和每一個HTML塊輸出後調用PHP的函數flush()是

;等效的。打開這個選項有嚴重的性能影響,通常的,建議只爲了調試纔打開

; http://php.net/implicit-flush
; Note: This directive is hardcoded to On for the CLI SAPI
;注意:這個選項在CLI SAPI中被寫死成On了
implicit_flush = Off

; 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 doesn't include/implement the missing class.
; So only set this entry, if you really want to implement such a
; callback-function.
;若是非序列化程序發現一個須要被實例化的類不存在,那麼非序列化回調函數將被調用(使用那個沒有被定義的類的類名做爲參數)。若是一個函數沒

;有定義或者函數沒有包含/實現那個丟失的類,將會出現一個警告消息。因此若是你真的要實現這樣的回調函數,只有設置此項。 
unserialize_callback_func =

; 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表明浮動點後面的有效數位。這個默認值保證當浮點數被非序列化譯解時,數據能夠保持原

;樣
serialize_precision = 17

; 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.
;若是設置了open_basedir,全部對於設定的目錄以及其下的子目錄的文件操做都會受到限制。這個指令用在單目錄或者單虛擬主機web服務器配置文

;件上更有用
; http://php.net/open-basedir
;open_basedir =

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names.
;這個指令容許你出於安全考慮將部分函數禁用掉。它接收以逗號隔開的函數名
; http://php.net/disable-functions
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names.
;這個指令容許你出於安全考慮將部分類禁用掉。它接收以逗號隔開的類名
; http://php.net/disable-classes
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style="color: ???????"> would work.
;語法高亮模式的顏色。任何<span style="color: ???????">能夠接受的均可行
; http://php.net/syntax-highlighting
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.default = #0000BB
;highlight.html    = #000000

; 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. PHP's default behavior
; is to disable this feature.
;若是開啓這個,請求將會被繼續完成即便用戶中斷了請求。若是執行最終可能被用戶或一個瀏覽器超時中斷長的請求,考慮啓用它。PHP默認的行爲是

;禁止這個特性
; 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.
;決定了被PHP 使用的realpath緩存的大小。這個值應該在PHP打開不少文件來反應文件操做完成的數量的系統上增長
; http://php.net/realpath-cache-size
;realpath_cache_size = 16k

; 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.
;持續時間(單位:秒),用於緩存針對給定的文件或者目錄的realpath信息。對於不多更改文件的系統,考慮增長這個值。
; http://php.net/realpath-cache-ttl
;realpath_cache_ttl = 120

; Enables or disables the circular reference collector.
;啓用或禁用循環引用收集器
; http://php.net/zend.enable-gc
zend.enable_gc = On

; If enabled, scripts may be written in encodings that are incompatible with
; the scanner.  CP936, Big5, CP949 and Shift_JIS are the examples of such
; encodings.  To use this feature, mbstring extension must be enabled.
;若是啓用,腳本就可能以不兼容掃描儀的編碼被寫入。CP936, Big5, CP949 和Shift_JIS就是這種類型的編碼。爲了使用這種特性,mbstring擴展須要

;啓用
; Default: Off
;zend.multibyte = Off

; Allows to set the default encoding for the scripts.  This value will be used
; unless "declare(encoding=...)" directive appears at the top of the script.
; Only affects if zend.multibyte is set.
;容許爲腳本設置默認的編碼。除非"declare(encoding=...)"指令出如今腳本上方,不然這個值會被使用。只有zend.multibyte被設置了纔有效
; Default: ""
;zend.script_encoding =

;;;;;;;;;;;;;;;;;
; Miscellaneous ;
;;;;;;;;;;;;;;;;;

; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header).  It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
;這個選項決定PHP是否能夠暴露它被安裝在服務器上的事實(例如:添加它的信號到網絡服務器響應的頭部信息)。它並無安全隱患,可是它使得確

;認你是否在服務器上使用PHP成爲可能
; http://php.net/expose-php
expose_php = On

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
;每一個腳本的最大執行時間(單位:秒)
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
;注意:這個指令在CLI SAPI中被寫死爲0
max_execution_time = 30

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
;每一個腳本用於解析請求數據的最大時間。爲了消除出乎意料的生產服務器上長時間運行的腳本,限制這個時間是個不錯的想法
; Note: This directive is hardcoded to -1 for the CLI SAPI
;注意:這個指令在CLI SAPI中被寫死爲-1
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
max_input_time = 60

; Maximum input variable nesting level
;最大輸入變量嵌套級別
; http://php.net/max-input-nesting-level
;max_input_nesting_level = 64

; How many GET/POST/COOKIE input variables may be accepted
;多少GET/POST/COOKIE變量能夠被接受
; max_input_vars = 1000

; Maximum amount of memory a script may consume (128MB)
;一個腳本最大能夠消耗的內存數量(128M)
; http://php.net/memory-limit
memory_limit = 128M

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ; 錯誤處理和日誌
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for. The recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. The error level constants are below here for convenience as well as
; some common settings and their meanings.
;這個指令通知PHP你想要它處理哪一類錯誤、警告和提示。設置這個指令值的建議經過使用錯誤級別常量和位運算符。爲了方便起見,下面是這些錯誤

;級別常量以及一些經常使用設置和他們的意思。

; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
; those related to E_NOTICE and E_STRICT, which together cover best practices and
; recommended coding standards in PHP. For performance reasons, this is the
; recommend error reporting setting. Your production server shouldn't be wasting
; resources complaining about best practices and coding standards. That's what
; development servers and development settings are for.
; Note: The php.ini-development file has this setting as E_ALL. This
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
;默認的,PHP被配置爲對除了與E_NOTICE 和 E_STRICT相關的以外的全部錯誤、警告和提示都產生報告。E_NOTICE 和 E_STRICT覆蓋了PHP中最佳

;實踐和推薦編碼標準。出於性能考慮,這是推薦的錯誤報告設置。你的生產服務器不該該浪費資源在解釋最佳實踐和編碼標準上。那是開發服務器的和

;開發配置的目的。
;注意:php.ini-development將這個設置爲E_ALL。這表示它會詳細報告全部你在開發和前期測試想要知道的問題
;
; Error Level Constants:
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 5.4.0)
;全部錯誤和警告(自PHP 5.4.0起,加入E_STRICT)
; E_ERROR           - fatal run-time errors
;致命的運行時錯誤
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
;幾乎致命的運行時錯誤
; E_WARNING         - run-time warnings (non-fatal errors)
;運行時警告(即不致命的錯誤)
; E_PARSE           - compile-time parse errors
;編譯時解析錯誤
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it is automatically initialized to an
;                     empty string)
;運行時提示(這些是警告常常由你的代碼裏的bug致使的,但也有多是故意的(例如:使用一個未初始化的變量而且信賴它會被自動初始化爲一個空串))
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
;運行時提示,啓用可使PHP爲你代碼的改變提供建議,這會保證你的代碼最好的互操做性以及向前的兼容性
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
;PHP內核啓動期間發生的致命錯誤
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
;PHP內核啓動期間發生的警告(非致命錯誤)
; E_COMPILE_ERROR   - fatal compile-time errors
;致命的編譯時錯誤
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
;編譯時警告(非致命錯誤)
; E_USER_ERROR      - user-generated error message
;用戶產生的錯誤信息
; E_USER_WARNING    - user-generated warning message
;用戶產生的警告信息
; E_USER_NOTICE     - user-generated notice message
;用戶產生的提示信息
; E_DEPRECATED      - warn about code that will not work in future versions
;                     of PHP
;警告之後的版本的PHP將不會用的代碼
; E_USER_DEPRECATED - user-generated deprecation warnings
;
;用戶產生的反對使用的警告
; Common Values:
;   E_ALL (Show all errors, warnings and notices including coding standards.)
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices)
;   E_ALL & ~E_NOTICE & ~E_STRICT  (Show all errors, except for notices and coding standards warnings.)
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
;經常使用值:
;E_ALL (顯示全部錯誤、警告和提示,包括編碼標準)
;E_ALL & ~E_NOTICE  (顯示全部除了提示外的錯誤)
;E_ALL & ~E_NOTICE & ~E_STRICT  (顯示全部除了提示和編碼規範的警告外的錯誤)
;E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (只顯示錯誤)

; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; http://php.net/error-reporting
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
; it could be very dangerous in production environments. Depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; For production environments, we recommend logging errors rather than
; sending them to STDOUT.
;這個指令控制PHP是否輸出錯誤和輸出錯誤、提示和警告的位置。在開發期間輸出錯誤是頗有用的,可是在生產環境下是很是危險的。依賴觸發錯誤的

;代碼,敏感信息如數據庫用戶名和密碼可能泄露或者更嚴重。對於生產環境,咱們建議將錯誤寫進日誌,而不是將它們輸出到標準輸出設備。

; Possible Values:
;   Off = Do not display any errors
;   stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
;   On or stdout = Display errors to STDOUT
;可能的值:
;Off = 不顯示任何錯誤
;stderr = 將錯誤信息輸出到STDERR(僅僅影響CGI/CLI庫)
;On或者stdout = 將錯誤輸出到標準輸出

; Default Value: On
; Development Value: On
; Production Value: Off
; http://php.net/display-errors
display_errors = Off

; The display of errors which occur during PHP's startup sequence are handled
; separately from display_errors. PHP's default behavior is to suppress those
; errors from clients. Turning the display of startup errors on can be useful in
; debugging configuration problems. We strongly recommend you
; set this to 'off' for production servers.
;發生在PHP啓動期間的錯誤顯示將根據display_errors的設置分開處理。PHP的默認行爲是抑制來自客戶端的錯誤。打開啓動錯誤的顯示在調試配置問

;題的時候是頗有用的。咱們強烈建議你在生產服務器上將這個指令設置爲「off」

; Default Value: Off
; Development Value: On
; Production Value: Off
; http://php.net/display-startup-errors
display_startup_errors = Off

; Besides displaying errors, PHP can also log errors to locations such as a
; server-specific log, STDERR, or a location specified by the error_log
; directive found below. While errors should not be displayed on productions
; servers they should still be monitored and logging is a great way to do that.
;除了顯示錯誤信息,PHP也能夠將錯誤信息記錄記錄到像服務器特定日誌,STDERR等位置,或者下面的error_log指令所指定的位置。由於錯誤不可

;以被顯示在生產服務器上,它們仍然應該被監測,而記錄日誌就是一個很好的方式。

; Default Value: Off
; Development Value: On
; Production Value: On
; http://php.net/log-errors
log_errors = On

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
;設置錯誤日誌的最大長度。關於源文件的信息被添加到到error_log所指示的位置。默認值是1024(MB???),而0容許不配置任何最大長度限制。
; http://php.net/log-errors-max-len
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
;不要記錄重複信息。重複出現的錯誤必須出如今同一個文件同一行除非ignore_repeated_source被設置爲真
; http://php.net/ignore-repeated-errors
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; source lines.
;當忽略重複信息的時候忽略信息的來源。當這個設置是On時,你不會記錄重複記錄來自不一樣文件或資源的重複信息
; http://php.net/ignore-repeated-source
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
;若是這個參數被設置爲Off,那麼內存溢出不會被顯示(不管在標準輸出設備仍是日誌文件中)。這也僅僅影響調試編譯以及錯誤報告包含

;E_WARMING在容許列表中。
; http://php.net/report-memleaks
report_memleaks = On

; This setting is on by default.
;這個設置默認是打開的
;report_zend_debug = 0

; Store the last error/warning message in $php_errormsg (boolean). Setting this value
; to On can assist in debugging and is appropriate for development servers. It should
; however be disabled on production servers.
;存儲最後的錯誤/警告信息在$php_errormsg(布爾值)。將這個值設置爲On能夠幫助調試,而且這對於開發服務器來講是合適的。然而,在生產服

;務器上,這是應該被禁用的。
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://php.net/track-errors
track_errors = Off

; Turn off normal error reporting and emit XML-RPC error XML
;關閉正常的錯誤報告,打開XML-RPC將錯誤記錄爲XML文檔
; http://php.net/xmlrpc-errors
;xmlrpc_errors = 0

; An XML-RPC faultCode
;一個XML-RPC錯誤代碼
;xmlrpc_error_number = 0

; When PHP displays or logs an error, it has the capability of formatting the
; error message as HTML for easier reading. This directive controls whether
; the error message is formatted as HTML or not.
; Note: This directive is hardcoded to Off for the CLI SAPI
;當PHP顯示或者記錄一個錯誤時,它有能力將錯誤信息格式化爲HTML格式以便閱讀。這個指令控制錯誤信息是否被格式化爲HTML格式。
;注意:這個指令在CLI SAPI被寫死爲Off

; Default Value: On
; Development Value: On
; Production value: On
; http://php.net/html-errors
html_errors = On

; If html_errors is set to On *and* docref_root is not empty, then PHP
; produces clickable error messages that direct to a page describing the error
; or function causing the error in detail.
; You can download a copy of the PHP manual from http://php.net/docs
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot. PHP's default behavior is to leave these settings empty, in which
; case no links to documentation are generated.
; Note: Never use this feature for production boxes.
;若是html_errors被設置爲On而且docref_root非空,那麼PHP將產生能夠點擊的錯誤信息,他能夠定向到詳細描述錯誤或者引發錯誤的函數的頁面。

;你能夠從http://php.net/docs下載一份PHP手冊副本而且將docref_root改成你的本地副本所在的URL,包括開頭的‘/’。你同時必須指定包

;含「.」的文件擴展名。PHP的默認行爲是保持這些設置空白,所以沒有指向文檔的連接被生成。
;注意:不要在生產盒子使用這個特性。

; http://php.net/docref-root
; Examples
;docref_root = "/phpmanual/"
; http://php.net/docref-ext
;docref_ext = .html

; String to output before an error message. PHP's default behavior is to leave
; this setting blank.
;輸出錯誤信息前輸出的字符串。PHP的默認行爲是保持這個設置空白
; http://php.net/error-prepend-string
; Example:
;error_prepend_string = "<span style='color: #ff0000'>"

; String to output after an error message. PHP's default behavior is to leave
; this setting blank.
;輸出錯誤信息後輸出的字符串。PHP的默認行爲是保持這個設置空白
; http://php.net/error-append-string
; Example:
;error_append_string = "</span>"

; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
;將錯誤記錄到指定文件,PHP的默認行爲是保持這個值空白
; http://php.net/error-log
; Example:
;error_log = php_errors.log
; Log errors to syslog (Event Log on Windows).
;將錯誤記錄到系統日誌(windows上的事件日誌)
;error_log = syslog

;windows.show_crt_warning
; Default value: 0
; Development value: 0
; Production value: 0

;;;;;;;;;;;;;;;;;
; Data Handling ; 數據處理
;;;;;;;;;;;;;;;;;

; The separator used in PHP generated URLs to separate arguments.
; PHP's default setting is "&".
;PHP生成的URLs中用於分開變量的分隔符。PHP默認的配置使」&」
; http://php.net/arg-separator.output
; Example:
;arg_separator.output = "&amp;"

; List of separator(s) used by PHP to parse input URLs into variables.
; PHP's default setting is "&".
; NOTE: Every character in this directive is considered as separator!
;PHP使用的用於解析輸入的URLs爲變量的分隔符列表,PHP默認的配置使」&」
; http://php.net/arg-separator.input
; Example:
;arg_separator.input = ";&"

; This directive determines which super global arrays are registered when PHP
; starts up. G,P,C,E & S are abbreviations for the following respective super
; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty
; paid for the registration of these arrays and because ENV is not as commonly
; used as the others, ENV is not recommended on productions servers. You
; can still get access to the environment variables through getenv() should you
; need to.
;這個指令決定在PHP啓動時哪一個超全局數組被啓動。G,P,C,E & S分別是下面的超全局數組的表明:GET,POST,COOKIE,ENV和SERVER。註冊這

;些數組有個性能損耗,並且由於ENV並不像其餘的那樣常常被用到,因此ENV並不建議在生產服務器上使用。可是若是你須要的話你仍然能夠獲取通

;過getenv()獲取環境變量。
; Default Value: "EGPCS"
; Development Value: "GPCS"
; Production Value: "GPCS";
; http://php.net/variables-order
variables_order = "GPCS"

; This directive determines which super global data (G,P & C) should be
; registered into the super global array REQUEST. If so, it also determines
; the order in which that data is registered. The values for this directive
; are specified in the same manner as the variables_order directive,
; EXCEPT one. Leaving this value empty will cause PHP to use the value set
; in the variables_order directive. It does not mean it will leave the super
; globals array REQUEST empty.
;這個指令決定G、P和C哪一個超全局數據應該被註冊到超全局數組REQUEST中。同時它也決定這些數據被註冊的順序。這個指令的值與variables_order

;指令以一樣的方式制定,除了一個。這個值保留空白時,PHP將會使用variables_order指令所設置的值,並不意味着會使REQUEST這個超全局數組爲空
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; http://php.net/request-order
request_order = "GP"

; This directive determines whether PHP registers $argv & $argc each time it
; runs. $argv contains an array of all the arguments passed to PHP when a script
; is invoked. $argc contains an integer representing the number of arguments
; that were passed when the script was invoked. These arrays are extremely
; useful when running scripts from the command line. When this directive is
; enabled, registering these variables consumes CPU cycles and memory each time
; a script is executed. For performance reasons, this feature should be disabled
; on production servers.
; Note: This directive is hardcoded to On for the CLI SAPI
;這個指令決定PHP每次運行時是否註冊$argv和$argc。$argv包含一個當一個腳本被調用時傳遞給PHP的全部參數的數組。$argc包含一個當一個腳本

;被調用時傳遞給PHP的全部參數的個數的整型數。這些數組在經過命令行運行腳本時是十分有用的。當這個指令被啓用時,每當一個腳本被執行時註冊

;這些變量都會消耗CPU週期和內存。出於性能考慮,這個特性應該在生產服務器上禁用。
;注意:這個指令在CLI和SAPI被寫死成On
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/register-argc-argv
register_argc_argv = Off

; When enabled, the ENV, REQUEST and SERVER variables are created when they're
; first used (Just In Time) instead of when the script starts. If these
; variables are not used within a script, having this directive on will result
; in a performance gain. The PHP directive register_argc_argv must be disabled
; for this directive to have any affect.
;當這個配置啓用時,ENV,REQUEST和SERVER變量會在第一次使用時(Just In Time)被建立,而不是腳本開始的時候。若是這些變量在腳本中都沒

;有被使用,那麼將這個指令打開將會使性能提升。爲了使這個指令生效,PHP指令register_argc_argv必須被禁用
; http://php.net/auto-globals-jit
auto_globals_jit = On

; Whether PHP will read the POST data.
; This option is enabled by default.
; Most likely, you won't want to disable this option globally. It causes $_POST
; and $_FILES to always be empty; the only way you will be able to read the
; POST data will be through the php://input stream wrapper. This can be useful
; to proxy requests or to process the POST data in a memory efficient fashion.
;決定是否PHP會讀取POST數據,這個選項默認是啓動的。你有很大的可能性不會想去全局的禁用這個選項。這將致使$_POST和$_FILES老是空的;你

;惟一能夠讀到POST數據的方法是經過php://輸入流包裝器。這對於代理請求和用一種內存高效的方式處理POST數據是有用的。
; http://php.net/enable-post-data-reading
;enable_post_data_reading = Off

; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
;PHP能夠接受的POST數據的最大長度。它的值爲0時表示沒有限制。若是POST數據讀取經過enable_post_data_reading被禁用了,這個配置將會被

;忽略。
; http://php.net/post-max-size
post_max_size = 8M

; Automatically add files before PHP document.
;在PHP文檔前自動添加文件
; http://php.net/auto-prepend-file
auto_prepend_file =

; Automatically add files after PHP document.
;在PHP文檔後自動添加文件
; http://php.net/auto-append-file
auto_append_file =

; By default, PHP will output a character encoding using
; the Content-type: header.  To disable sending of the charset, simply
; set it to be empty.
; PHP's built-in default is text/html
;默認地,PHP會使用Content-type: header輸出一個字符編碼。禁用發送的字符集只須要簡單的設置這個指令爲空。PHP內置的類型默認爲 text/html
; http://php.net/default-mimetype
default_mimetype = "text/html"

; PHP's default character set is set to UTF-8.
;PHP默認的字符集爲UTF-8

; http://php.net/default-charset
default_charset = "UTF-8"

; PHP internal character encoding is set to empty.
; If empty, default_charset is used.
;PHP內部的字符編碼被設置爲空,若是爲空,則使用default_charset
; http://php.net/internal-encoding
;internal_encoding =

; PHP input character encoding is set to empty.
; If empty, default_charset is used.
;PHP輸入的字符編碼被設置爲空,若是爲空,則使用default_charset
; http://php.net/input-encoding
;input_encoding =

; PHP output character encoding is set to empty.
; If empty, default_charset is used.
; mbstring or iconv output handler is used.
; See also output_buffer.
;PHP輸出的字符編碼被設置爲空,若是爲空,則使用default_charset。
;mbstring或者iconv輸出處理程序被使用
;也能夠查看output_buffer
; http://php.net/output-encoding
;output_encoding =

; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
; to disable this feature and it will be removed in a future version.
; If post reading is disabled through enable_post_data_reading,
; $HTTP_RAW_POST_DATA is *NOT* populated.
;老是構建$HTTP_RAW_POST_DATA變量。PHP默認的行爲是禁用這個特性,而且會在未來的版本移除。若是POST數據讀取經過

;enable_post_data_reading被禁用,$HTTP_RAW_POST_DATA就不被構建
; http://php.net/always-populate-raw-post-data
;always_populate_raw_post_data = -1

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ; 路徑和目錄
;;;;;;;;;;;;;;;;;;;;;;;;;


; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"  使用「:」
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"  使用「;」
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
;PHP的include_path默認的配置是「.;/php安裝路徑/pear」
;當使用include(),require(),fopen_with_path()函數來尋找文件時候,在不設置include_path的狀況下,這些函數打開文件時默認的是以web根目錄去尋

;找.當設置include_path之後,這些php函數就會先在指定的include_path目錄下面去搜索尋找
; http://php.net/include-path

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
;PHP頁面的根目錄,當非空時才被使用。若是PHP編譯沒有配置FORCE_REDIRECT,當你在任何服務器上把PHP當作CGI來運行時,你應該設置

;doc_root
; http://php.net/doc-root
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
;在這個目錄下PHP使用/~username打開腳本,只有非空時纔有效
; http://php.net/user-dir
user_dir =

; Directory in which the loadable extensions (modules) reside.
;可加載的擴展(模塊)存在的目錄
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"

; Directory where the temporary files should be placed.
; Defaults to the system default (see sys_get_temp_dir)
;臨時文件存放的目錄,默認值和系統的默認值一致(查看sys_get_temp_dir)
; sys_temp_dir = "/tmp"

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
;是否啓用dl()函數。dl()函數在多線程的服務器(如IIS、Zeus)上工做的不是很好,在這些服務器上,dl()函數會被自動禁用。(dl函數與系統操做相關)
; http://php.net/enable-dl
enable_dl = Off

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
;在大多數服務器上,cgi.forec_redirect對於PHP做爲CGI運行時提供安全性是必要的。若是沒有定義它,PHP默認會將它打開。你能夠在這裏將它關

;閉,而你本身負責承擔風險。

; http://php.net/cgi.force-redirect
;cgi.force_redirect = 1


; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request. PHP's default behavior is to disable this feature.
;若是cgi.nph被打開,它將會迫使cgi老是對每一個請求發送200狀態。PHP的默認行爲是禁用這個性能。
;cgi.nph = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
;若是cgi.force_redirect被打開,而且你不是在Apache或者Netscape下(IPlanet)運行服務器,你就須要設置一個PHP能夠查看並明白能夠繼續執行

;的環境變量名,設置這個變量可能會致使安全問題,你能夠了解下你首先應該要怎麼作
; http://php.net/cgi.redirect-status-env
;cgi.redirect_status_env =

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
;cgi.fix_pathinfo提供真實的PATH_INFO/PATH_TRANSLATED支持給CGI。PHP的早先行爲是設置PATH_TRANSLATED 爲 SCRIPT_FILENAME,並

;不深究PATH_INFO是什麼。瞭解更多關於PATH_INFO的信息,查看cgi 說明書。將這個指令設置爲1
;將會致使PHP的CGI路徑修正爲符合規格。默認值是1.你應該修正本身的腳本去使用SCRIPT_FILENAME,而不是使用PATH_TRANSLATED


; http://php.net/cgi.fix-pathinfo
;cgi.fix_pathinfo=1

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
;FastCGI在IIS(WinNT系統)支持模擬調用客戶端的安全令牌的能力,這容許IIS定義給請求安全運行的上下文。Apache下的mod_fastcgi當前不支持

;這個特性(03/17/2002)
; http://php.net/fastcgi.impersonate
;fastcgi.impersonate = 1

; Disable logging through FastCGI connection. PHP's default behavior is to enable
; this feature.
;經過FastCGI連接禁用日誌記錄。PHP默認的行爲是啓用這個特性。
;fastcgi.logging = 0

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If set to 0, PHP sends Status: header that
; is supported by Apache. When this option is set to 1, PHP will send
; RFC2616 compliant header.
; Default is zero.
;cgi.rfc2616_headers配置選項告訴PHP當發送http響應碼的時候使用什麼類型的頭部。若是設置爲0,PHP發送Apache支持的 狀態:頭部。當設置爲1

;時,PHP發送RFC2616文檔規定的頭部
; http://php.net/cgi.rfc2616-headers
;cgi.rfc2616_headers = 0

;;;;;;;;;;;;;;;;
; File Uploads ; 文件上載
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
;是否容許使用http上傳文件
; http://php.net/file-uploads
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;使用http上傳文件的臨時目錄(若是沒有指定,將使用系統默認的目錄)
; http://php.net/upload-tmp-dir
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
;容許上傳文件的最大值
; http://php.net/upload-max-filesize
upload_max_filesize = 2M

; Maximum number of files that can be uploaded via a single request
;經過一個請求能夠同時上載的最大文件數量
max_file_uploads = 20

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ; 
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
;是否容許將URLs(如http://、ftp://)做爲文件處理
; http://php.net/allow-url-fopen
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
;是否容許 include/require 將URLs做爲文件打開

; http://php.net/allow-url-include
allow_url_include = Off

; Define the anonymous ftp password (your email address). PHP's default setting
; for this is empty.
;定義匿名的ftp密碼(你的郵箱地址)。PHP的默認配置是空

; http://php.net/from
;from="john@doe.com"

; Define the User-Agent string. PHP's default setting for this is empty.
;定義用戶代理字符串。PHP的默認設置是空。
; http://php.net/user-agent
;user_agent="PHP"

; Default timeout for socket based streams (seconds)
;基於套接字的流的默認超時時間(單位:秒)
; http://php.net/default-socket-timeout
default_socket_timeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
;若是你的腳本須要處理來之麥金塔系統(蘋果公司的系統)的文件,或者你在Mac上運行而且須要處理來自UNIX或者win32的文件,那麼設置這個標

;志將會觸使PHP自動檢測那些文件的EOL特性以便fget()和file()會忽略文件的源進行工做。
; http://php.net/auto-detect-line-endings
;auto_detect_line_endings = Off

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;若是你但願使擴展自動加載,請使用下面的語法。
;   extension=modulename.extension
;extension=模塊名.擴展名
; For example, on Windows:
;
;   extension=msql.dll
;
; ... or under UNIX:
;
;   extension=msql.so
;
; ... or with a path:
;
;   extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.
;若是你只提供擴展名,PHP會在它的默認擴展目錄下尋找。

;
; Windows Extensions    Windows下的擴展 
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
;注意:ODBC支持是PHP內部集成的,因此不須要dll文件
;注意:不少DLL文件是放置於extensions/ (PHP 4) 或者ext/ (PHP 5)

;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_fileinfo.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_exif.dll      ; Must be after mbstring as it depends on it
                         ;必須存在於mbstring後面由於它依賴於mbstring
;extension=php_mysql.dll
;extension=php_mysqli.dll
;extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client
; 使用Oracle數據庫12c的即時客戶端
;extension=php_openssl.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll

; The MIBS data available in the PHP distribution must be installed. 
; See http://www.php.net/manual/en/snmp.installation.php 
;extension=php_snmp.dll

;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite3.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll

;;;;;;;;;;;;;;;;;;;
; Module Settings ;  模塊設置
;;;;;;;;;;;;;;;;;;;

CLI   command-line interface,命令行界面

[CLI Server] 
; Whether the CLI web server uses ANSI color coding in its terminal output.
;是否CLI網絡服務器在它的終端輸出使用ANSI顏色編碼
cli_server.color = On

[Date]
; Defines the default timezone used by the date functions
定義供日期函數使用的默認時區
; http://php.net/date.timezone
;date.timezone =

; http://php.net/date.default-latitude
;date.default_latitude = 31.7667 默認緯度

; http://php.net/date.default-longitude
;date.default_longitude = 35.2333  默認經度

; http://php.net/date.sunrise-zenith  日出最高點
;date.sunrise_zenith = 90.583333

; http://php.net/date.sunset-zenith  日落最高點
;date.sunset_zenith = 90.583333

[filter]
; http://php.net/filter.default
;filter.default = unsafe_raw

; http://php.net/filter.default-flags
;filter.default_flags =

[iconv]
; Use of this INI entry is deprecated, use global input_encoding instead.
; If empty, default_charset or input_encoding or iconv.input_encoding is used.
; The precedence is: default_charset < intput_encoding < iconv.input_encoding
;不同意使用這個ini入口,取而代之的是使用全局input_encoding。若是這個設置爲空,將使用default_charset 或者 input_encoding 或者 

;iconv.input_encoding。優先級爲:default_charset < intput_encoding < iconv.input_encoding
;iconv.input_encoding =

; Use of this INI entry is deprecated, use global internal_encoding instead.
; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
;不同意使用這個ini入口,取而代之的是使用全局internal_encoding。若是這個設置爲空,將使用default_charset 或者 internal_encoding 或者 

;iconv. internal_encoding。優先級爲:default_charset < internal_encoding < iconv. internal_encoding
;iconv.internal_encoding =

; Use of this INI entry is deprecated, use global output_encoding instead.
; If empty, default_charset or output_encoding or iconv.output_encoding is used.
; The precedence is: default_charset < output_encoding < iconv.output_encoding
; To use an output encoding conversion, iconv's output handler must be set
; otherwise output encoding conversion cannot be performed.
;不同意使用這個ini入口,取而代之的是使用全局output _encoding。若是這個設置爲空,將使用default_charset 或者 output_encoding 或者 

;iconv. output_encoding。優先級爲:default_charset < output _encoding < iconv. output_encoding
;使用一個輸出編碼轉換,iconv的輸出處理程序必須設置,不然輸出編碼轉換將不起做用
;iconv.output_encoding =

[intl]
;intl.default_locale =
; This directive allows you to produce PHP errors when some error
; happens within intl functions. The value is the level of the error produced.
; Default is 0, which does not produce any errors.
;這個指令容許你當錯誤發生在intl函數內時生成PHP錯誤信息,它的值是生成的錯誤級別。默認值爲0,不產生任何錯誤。
;intl.error_level = E_WARNING

[sqlite]
; http://php.net/sqlite.assoc-case
;sqlite.assoc_case = 0

[sqlite3]
;sqlite3.extension_dir =

[Pcre]
;PCRE(Perl Compatible Regular Expressions)是一個Perl庫,包括 perl 兼容的正則表達式庫。這些在執行正規表達式模式匹配時用與Perl 5一樣的語

;法和語義是頗有用的

;PCRE library backtracking limit.
;PCRE庫回溯限制
; http://php.net/pcre.backtrack-limit
;pcre.backtrack_limit=100000

;PCRE library recursion limit.
;Please note that if you set this value to a high number you may consume all
;the available process stack and eventually crash PHP (due to reaching the
;stack size limit imposed by the Operating System).
;PCRE庫遞歸限制。請注意,若是你將這個值設置爲比較高的值,你可能消耗全部的可用進程堆棧,最後致使PHP崩潰(緣由是達到了操做系統對堆棧

;大小的限制)
; http://php.net/pcre.recursion-limit
;pcre.recursion_limit=100000

[Pdo]
; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
;是否使用ODBC鏈接池。能夠是"strict", "relaxed" 或者 "off"中的一個
; http://php.net/pdo-odbc.connection-pooling
;pdo_odbc.connection_pooling=strict

;pdo_odbc.db2_instance_name

[Pdo_mysql]
; If mysqlnd is used: Number of cache slots for the internal result set cache
;若是mysqlnd被使用,這個表明用於內部結果集緩存的緩存槽數
; http://php.net/pdo_mysql.cache_size
pdo_mysql.cache_size = 2000

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
;本地MySQL鏈接的默認的套接字名字。若是爲空,使用內建的MySQL默認設置
; http://php.net/pdo_mysql.default-socket
pdo_mysql.default_socket=

[Phar] ;Phar用於歸檔,打包發佈應用
; http://php.net/phar.readonly
;phar.readonly = On

; http://php.net/phar.require-hash
;phar.require_hash = On

;phar.cache_list =


[mail function] ;郵件函數(使用PHP發送郵件)
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;僅供Unix使用。你能夠也能夠提供參數(默認爲"sendmail -t -i")
; http://php.net/sendmail-path
;sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail().
;爲sendmail二進制強制添加指定的參數做爲額外的參數使經過。這些參數會一直將mail()的第五個參數值替換掉
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
;添加X-PHP-Originating-Script:在文件名以後包含腳本的uid
mail.add_x_header = On

; The path to a log file that will log all mail() calls. Log entries include
; the full path of the script, line number, To address and headers.
;指向記錄全部mail()調用的一個文件的路徑。記錄入口包括腳本的絕對路徑、行號、發送的目的地址以及頭部信息
;mail.log =
; Log mail to syslog (Event Log on Windows).
;將mail記錄到系統日誌。(Windows上的事件記錄)
;mail.log = syslog

[SQL]
; http://php.net/sql.safe-mode
sql.safe_mode = Off

[ODBC]
; http://php.net/odbc.default-db
;odbc.default_db    =  Not yet implemented (未實現)

; http://php.net/odbc.default-user
;odbc.default_user  =  Not yet implemented

; http://php.net/odbc.default-pw
;odbc.default_pw    =  Not yet implemented

; Controls the ODBC cursor model.
; Default: SQL_CURSOR_STATIC (default).
;控制ODBC的有表模型。默認值:SQL_CURSOR_STATIC
;odbc.default_cursortype

; Allow or prevent persistent links.
;容許或者放置持久鏈接
; http://php.net/odbc.allow-persistent
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
;重用前檢查鏈接是否仍然有效
; http://php.net/odbc.check-persistent
odbc.check_persistent = On

; Maximum number of persistent links.  -1 means no limit.
;持久鏈接的最大數量。-1表示沒有限制
; http://php.net/odbc.max-persistent
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
;鏈接(包括持久和非持久鏈接)的最大數量。-1表示沒有限制
; http://php.net/odbc.max-links
odbc.max_links = -1

; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
;處理long型字段,返回字節數給變量。0表明經過(?)
; http://php.net/odbc.defaultlrl
odbc.defaultlrl = 4096

; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of odbc.defaultlrl and odbc.defaultbinmode
;處理二進制數據。0表明經過,1表明按照原來的樣子,2轉化爲字符。查看odbc_binmode 和 odbc_longreadlen獲取odbc.defaultlrl 和 

;odbc.defaultbinmode的解釋。
; http://php.net/odbc.defaultbinmode
odbc.defaultbinmode = 1

;birdstep.max_links = -1

[Interbase]
; Allow or prevent persistent links.
;容許或防止持久鏈接
ibase.allow_persistent = 1

; Maximum number of persistent links.  -1 means no limit.
;持久鏈接的最大數量,-1表示不限制
ibase.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
;鏈接(包括持久鏈接和非持久鏈接)的最大數量,-1表示不限制
ibase.max_links = -1

; Default database name for ibase_connect().
;ibase_connect()的默認數據庫名
;ibase.default_db =

; Default username for ibase_connect().
;ibase_connect()的默認用戶名
;ibase.default_user =

; Default password for ibase_connect().
;ibase_connect()的默認密碼
;ibase.default_password =

; Default charset for ibase_connect().
;ibase_connect()的默認字符集
;ibase.default_charset =

; Default timestamp format.
;默認時間戳格式
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"

; Default date format.
;默認日期格式
ibase.dateformat = "%Y-%m-%d"

; Default time format.
;默認時間格式
ibase.timeformat = "%H:%M:%S"

[MySQL]
; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
;容許在PHP層面使用LOAD DATA聲明訪問本地文件
; http://php.net/mysql.allow_local_infile
mysql.allow_local_infile = On

; Allow or prevent persistent links.
;容許或防止持久鏈接
; http://php.net/mysql.allow-persistent
mysql.allow_persistent = On

; If mysqlnd is used: Number of cache slots for the internal result set cache
;若是mysqlnd被使用,這個表明用於內部結果集緩存的緩存槽數
; http://php.net/mysql.cache_size
mysql.cache_size = 2000

; Maximum number of persistent links.  -1 means no limit.
;持久鏈接的最大數量,-1表示沒有限制
; http://php.net/mysql.max-persistent
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
;鏈接(持久鏈接和非持久鏈接)的最大數量,-1表示沒有限制
; http://php.net/mysql.max-links
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
;mysql_connect()的默認端口號。若是設置了,mysql_connect()會使用$MYSQL_TCP_PORT或者在/etc/services的 mysql-tcp入口或者編譯時定義

;MYSQL_PORT的值(按照這幾個的前後順序使用)。Win32只會查看MYSQL_PORT
; http://php.net/mysql.default-port
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
;本地MySQL鏈接的默認套接字名。若是爲空,使用內建的MySQL默認值
; http://php.net/mysql.default-socket
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
;mysql_connect()的默認主機(在安全模式下不該用)
; http://php.net/mysql.default-host
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
;mysql_connect()的默認用戶(在安全模式下不該用)
; http://php.net/mysql.default-user
mysql.default_user =


; Default password for mysql_connect() (doesn't apply in safe mode).
;mysql_connect()的默認密碼(在安全模式下不該用)
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
;注意:將密碼存放在這個文件一般不是一個好的idea。任何訪問PHP的用戶能夠運行'echo get_cfg_var("mysql.default_password")' 而泄露這個密

;碼。固然,任何對這個文件有讀取權限的用戶也有能力泄露密碼。
; http://php.net/mysql.default-password
mysql.default_password =

; Maximum time (in seconds) for connect timeout. -1 means no limit
;鏈接超時的最長時間(單位:秒)。-1表示沒有限制
; http://php.net/mysql.connect-timeout
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
;追蹤模式。當trace_mode被激活(爲On),表和索引的警告掃描,而且SQl錯誤會被顯示出來
; http://php.net/mysql.trace-mode
mysql.trace_mode = Off

[MySQLi]

; Maximum number of persistent links.  -1 means no limit.
;持久鏈接的最大數量,-1表示沒有限制
; http://php.net/mysqli.max-persistent
mysqli.max_persistent = -1

; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
容許在PHP層面使用LOAD DATA聲明訪問本地文件
; http://php.net/mysqli.allow_local_infile
;mysqli.allow_local_infile = On

; Allow or prevent persistent links.
;容許或防止持久鏈接
; http://php.net/mysqli.allow-persistent
mysqli.allow_persistent = On

; Maximum number of links.  -1 means no limit.
;鏈接的最大數量。-1表示無限制
; http://php.net/mysqli.max-links
mysqli.max_links = -1

; If mysqlnd is used: Number of cache slots for the internal result set cache
;若是mysqlnd被使用,這個表明用於內部結果集緩存的緩存槽數
; http://php.net/mysqli.cache_size
mysqli.cache_size = 2000

; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
;mysqli_connect()的默認端口號。若是設置了,mysql_connect()會使用$MYSQL_TCP_PORT或者在/etc/services的 mysql-tcp入口或者編譯時定義

;MYSQL_PORT的值(按照這幾個的前後順序使用)。Win32只會查看MYSQL_PORT
; http://php.net/mysqli.default-port
mysqli.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
;本地MySQL鏈接的默認套接字名。若是爲空,使用內建的MySQL默認值
; http://php.net/mysqli.default-socket
mysqli.default_socket =

; Default host for mysqli_connect() (doesn't apply in safe mode).
;mysqli_connect()的默認主機名(在安全模式下不該用)
; http://php.net/mysqli.default-host
mysqli.default_host =

; Default user for mysqli_connect() (doesn't apply in safe mode).
;mysqli_connect()的默認用戶(在安全模式下不該用)
; http://php.net/mysqli.default-user
mysqli.default_user =

; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
;mysqli_connect()的默認密碼(在安全模式下不該用)
;注意:將密碼存放在這個文件一般不是一個好的idea。任何訪問PHP的用戶能夠運行'echo get_cfg_var("mysqli.default_pw ")' 而泄露這個密碼。當

;然,任何對這個文件有讀取權限的用戶也有能力泄露密碼。
; http://php.net/mysqli.default-pw
mysqli.default_pw =

; Allow or prevent reconnect
;容許或防止從新創建鏈接
mysqli.reconnect = Off

[mysqlnd]
; Enable / Disable collection of general statistics by mysqlnd which can be
; used to tune and monitor MySQL operations.
;啓用和禁用對mysqlnd產生的常規統計,這些統計可用於調整和監測MySQL操做
; http://php.net/mysqlnd.collect_statistics
mysqlnd.collect_statistics = On

; Enable / Disable collection of memory usage statistics by mysqlnd which can be
; used to tune and monitor MySQL operations.
;啓用和禁用對mysqlnd產生的內存使用統計,這些統計可用於調整和監測MySQL操做
; http://php.net/mysqlnd.collect_memory_statistics
mysqlnd.collect_memory_statistics = Off

; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
;當以字節發送指令到MySQL時使用的預分配的緩衝區大小
; http://php.net/mysqlnd.net_cmd_buffer_size
;mysqlnd.net_cmd_buffer_size = 2048

; Size of a pre-allocated buffer used for reading data sent by the server in
; bytes.
;讀取服務器以字節發送的數據時使用的預分配的緩衝區大小
; http://php.net/mysqlnd.net_read_buffer_size
;mysqlnd.net_read_buffer_size = 32768

[OCI8]
; Connection: Enables privileged connections using external
; credentials (OCI_SYSOPER, OCI_SYSDBA)
;鏈接:啓用使用外部證書的特權鏈接。
; http://php.net/oci8.privileged-connect
;oci8.privileged_connect = Off

; Connection: The maximum number of persistent OCI8 connections per
; process. Using -1 means no limit.
;鏈接:每一個進程中OCI8持久鏈接的最大數量,-1表示沒有限制
; http://php.net/oci8.max-persistent
;oci8.max_persistent = -1

; Connection: The maximum number of seconds a process is allowed to
; maintain an idle persistent connection. Using -1 means idle
; persistent connections will be maintained forever.
;鏈接:一個進程能夠保持一個閒置長鏈接的最大秒數。-1表示閒置長鏈接會被永久保存
; http://php.net/oci8.persistent-timeout
;oci8.persistent_timeout = -1

; Connection: The number of seconds that must pass before issuing a
; ping during oci_pconnect() to check the connection validity. When
; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
; pings completely.
;鏈接:在oci_pconnect()檢查鏈接有效性的期間,在發起一個ping以前必須通過的秒數。當被設置爲0時,每一個oci_pconnect()會致使一個ping。配置

;爲-1徹底禁用pings。
; http://php.net/oci8.ping-interval
;oci8.ping_interval = 60

; Connection: Set this to a user chosen connection class to be used
; for all pooled server requests with Oracle 11g Database Resident
; Connection Pooling (DRCP).  To use DRCP, this value should be set to
; the same string for all web servers running the same application,
; the database pool must be configured, and the connection string must
; specify to use a pooled server.
;鏈接:將這個設置爲一個用戶選擇的用於全部用Oracle 11g數據庫駐留鏈接池聯合服務器請求的鏈接類(DRCP)。爲了使用DRCp,全部運行同一個應

;用的聯合服務器的這個值應設爲相同的字符串,數據庫池必須被配置,而且鏈接字符串必須制定使用聯合服務器。
;oci8.connection_class =

; High Availability: Using On lets PHP receive Fast Application
; Notification (FAN) events generated when a database node fails. The
; database must also be configured to post FAN events.
;高可用性:使用On讓PHP接收當一個數據庫結點失敗時產生的快速應用通知(FAN)事件。數據庫必須被配置成能發送FAN事件
;oci8.events = Off

; Tuning: This option enables statement caching, and specifies how
; many statements to cache. Using 0 disables statement caching.
;調試:這個選項使報表緩存實現,而且指定要緩存多少報表。使用0禁用報表緩存。
; http://php.net/oci8.statement-cache-size
;oci8.statement_cache_size = 20

; Tuning: Enables statement prefetching and sets the default number of
; rows that will be fetched automatically after statement execution.
;調試:使報表能夠預取而且設置報表執行後會被自動獲取的默認行數
; http://php.net/oci8.default-prefetch
;oci8.default_prefetch = 100

; Compatibility. Using On means oci_close() will not close
; oci_connect() and oci_new_connect() connections.
;兼容性:使用On表示oci_close()不會關閉oci_connect()和oci_new_connect()鏈接
; http://php.net/oci8.old-oci-close-semantics
;oci8.old_oci_close_semantics = Off

[PostgreSQL]
; Allow or prevent persistent links.
;容許或防止長鏈接
; http://php.net/pgsql.allow-persistent
pgsql.allow_persistent = On

; Detect broken persistent links always with pg_pconnect().
; Auto reset feature requires a little overheads.
;老是使用pg_pconnect()偵探崩潰的長鏈接。自動重置特性須要一點額外開銷
; http://php.net/pgsql.auto-reset-persistent
pgsql.auto_reset_persistent = Off

; Maximum number of persistent links.  -1 means no limit.
;長鏈接的最大數量,-1表示無限制
; http://php.net/pgsql.max-persistent
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
;鏈接的最大數量,-1表示無限制
; http://php.net/pgsql.max-links
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
;是否忽略PostgreSQL後端通知信息,通知信息記入日誌須要一些額外開銷
; http://php.net/pgsql.ignore-notice
pgsql.ignore_notice = 0

; Log PostgreSQL backends Notice message or not.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
;是否記錄後端通知信息。除非pgsql.ignore_notice=0,不然模塊不能夠記錄注意信息
; http://php.net/pgsql.log-notice
pgsql.log_notice = 0

;[Sybase-CT] Sybase是美國Sybase公司研製的一種關係型數據庫系統,是一種典型的UNIX或WindowsNT平臺上客戶機/服務器環境下的大型數據庫系統。

; Allow or prevent persistent links.
;容許或禁止長鏈接
; http://php.net/sybct.allow-persistent
sybct.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
;長鏈接的最大數量,-1表示無限制
; http://php.net/sybct.max-persistent
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
;鏈接的最大數量(包括長鏈接和短鏈接),-1表示無限制
; http://php.net/sybct.max-links
sybct.max_links = -1

; Minimum server message severity to display.
;顯示的服務器信息嚴重性的最小量
; http://php.net/sybct.min-server-severity
sybct.min_server_severity = 10

; Minimum client message severity to display.
;顯示的客戶端信息嚴重性的最小量
; http://php.net/sybct.min-client-severity
sybct.min_client_severity = 10

; Set per-context timeout
;設置每一個上下文的超時時間
; http://php.net/sybct.timeout
;sybct.timeout=

;sybct.packet_size


; The maximum time in seconds to wait for a connection attempt to succeed before returning failure.
; Default: one minute
;一個鏈接返回失敗前嘗試去繼承的最長時間(單位:秒),默認值是1分鐘
;sybct.login_timeout=

; The name of the host you claim to be connecting from, for display by sp_who.
; Default: none
;你聲明的鏈接的主機名,這個主機被sp_who用於顯示。默認值:無
;sybct.hostname=

; Allows you to define how often deadlocks are to be retried. -1 means "forever".
; Default: 0
;容許你定義死鎖被從新嘗試的頻率。-1表示永遠。默認值:0
;sybct.deadlock_retry_count=

[bcmath] ;高精度數學運算
; Number of decimal digits for all bcmath functions.
;對於全部高精度數學運算函數,小數位的數目
; http://php.net/bcmath.scale
bcmath.scale = 0

[browscap]
; http://php.net/browscap
;browscap = extra/browscap.ini

[Session]
; Handler used to store/retrieve data.
;用於存儲和檢索數據的處理器
; http://php.net/session.save-handler
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;提交給給save_handler的內容提要。使用文件時,這個值是數據文件被存放的位置。注意:Windows用戶爲了使用PHP的session函數必須改變這個

;變量

; The path can be defined as:
;路徑能夠定義如:
;     session.save_path = "N;/path"
;
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if
; your OS has problems with many files in one directory, and is
; a more efficient layout for servers that handle many sessions.
;這裏的N是一個整型數。這會使用N層的子目錄,而後將session存放在那些目錄中,而不是將全部的session文件存儲在/path中。這對於不能再同一

;個目錄下存放許多文件的系統是有用的,而且這是一個服務器處理不少sessions更高效的設計
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
;注意1;PHP不會自動建立這個目錄結構,你可使用ext/session目錄下的腳原本實現這個目的
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;注意2:若是你選擇使用子目錄結構存儲session,你應該查看下面的垃圾回收章節
; The file storage module creates files using mode 600 by default.
;文件存儲模塊默認使用600模式建立文件。
; You can change that by using
;你可使用下面的方式改變它:
;     session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
;這裏MODE是表明模式的八進制數。注意:這並不會重寫處理器的掩碼
; http://php.net/session.save-path
;session.save_path = "/tmp"

; Whether to use strict session mode.
; Strict session mode does not accept uninitialized session ID and regenerate
; session ID if browser sends uninitialized session ID. Strict mode protects
; applications from session fixation via session adoption vulnerability. It is
; disabled by default for maximum compatibility, but enabling it is encouraged.
;是否使用嚴格的session模式
;嚴格的session模式不接受未初始化的session ID,而且若是瀏覽器發送了未初始化的session ID,它會從新生成session ID。嚴格的模式能夠防止應用

;出現session經過session採用漏洞被固定死。爲了最大的兼容性它被禁止了,可是鼓勵啓動它。
; https://wiki.php.net/rfc/strict_sessions
session.use_strict_mode = 0

; Whether to use cookies.
;是否使用cookies
; http://php.net/session.use-cookies
session.use_cookies = 1

; http://php.net/session.cookie-secure
;session.cookie_secure =

; This option forces PHP to fetch and use a cookie for storing and maintaining
; the session id. We encourage this operation as it's very helpful in combating
; session hijacking when not specifying and managing your own session id. It is
; not the be-all and end-all of session hijacking defense, but it's a good start.
;這個選項強制PHP獲取並使用一個cookie用於存儲和維護session ID。咱們鼓勵這個操做由於當你沒有指定和管理你本身的session ID時對於防止

;session劫持是十分有用的。它不是徹底解決session劫持的防護方法,可是是一個好的開頭。
; http://php.net/session.use-only-cookies
session.use_only_cookies = 1

; Name of the session (used as cookie name).
;session的名字(做爲cookie名使用)
; http://php.net/session.name
session.name = PHPSESSID

; Initialize session on request startup.
;當請求開始時初始化session
; http://php.net/session.auto-start
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
;cookie的生存時間,若是設置爲0,cookie生存到瀏覽器重啓
; http://php.net/session.cookie-lifetime
session.cookie_lifetime = 0

; The path for which the cookie is valid.
;cookie的有效做用路徑
; http://php.net/session.cookie-path
session.cookie_path = /

; The domain for which the cookie is valid.
;cookie在哪一個主機上是有效的
; http://php.net/session.cookie-domain
session.cookie_domain =

; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
;是否添加僅http協議能夠訪問cookie的標誌,這將使瀏覽器腳本語言(如JavaScript)沒法訪問cookie
; http://php.net/session.cookie-httponly
session.cookie_httponly =

; Handler used to serialize data.  php is the standard serializer of PHP.
;用於序列化數據的處理器。php是PHP的標準序列化器。
; http://php.net/session.serialize-handler
session.serialize_handler = php

; Defines the probability that the 'garbage collection' process is started
; on every session initialization. The probability is calculated by using
; gc_probability/gc_divisor. Where session.gc_probability is the numerator
; and gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request. 
; Default Value: 1
;定義垃圾回收處理在每一個session初始化時被啓動的可能性。這個可能性是由gc_probability/gc_divisor得出的。這裏的等式中session.gc_probability

;是個分子而session.gc_divisor是分母。將這個值設置爲1,當session.gc_divisor被設置爲100時垃圾回收機制在任何請求上運行大約有1%的概率。
;默認值:1
; Development Value: 1
; Production Value: 1
; http://php.net/session.gc-probability
session.gc_probability = 1

; Defines the probability that the 'garbage collection' process is started on every
; session initialization. The probability is calculated by using the following equation:
; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
; session.gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request. Increasing this value to 1000 will give you
; a 0.1% chance the gc will run on any give request. For high volume production servers,
; this is a more efficient approach.
;定義垃圾回收處理在每一個session初始化時被啓動的可能性。這個可能性是由gc_probability/gc_divisor得出的。這裏的等式中session.gc_probability

;是個分子而session.gc_divisor是分母。將這個值設置爲1,當session.gc_divisor被設置爲100時垃圾回收機制在任何請求上運行大約有1%的概率。將

;這個值增長到1000會使這個可能性變成0.1%。對於大流量的生產服務器,這是一個更有效的方法。
; Default Value: 100
; Development Value: 1000
; Production Value: 1000
; http://php.net/session.gc-divisor
session.gc_divisor = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
;在這個數字所指定的秒數後,被存儲的數據將會被視爲垃圾而且會被垃圾回收進程清理掉。
; http://php.net/session.gc-maxlifetime
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          find /path/to/sessions -cmin +24 -type f | xargs rm
;注意:若是你正在使用子目錄選項用來存儲session文件(查看上面的session.save_path),那麼垃圾回收不會自動發生。你須要經過一個shell腳

;本、按期任務或者其餘方法去作本身的垃圾回收。例如,下面的腳本等價於設置session.gc_maxlifetime爲1440(1440秒=24分鐘):
;find /path/to/sessions -cmin +24 -type f | xargs rm
; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
;查看http Referer 來使外部存儲的帶有id的URLs失效。HTTP_REFERER必須包含這個子字符串才能使session被視爲有效的。
; http://php.net/session.referer-check
session.referer_check =

; How many bytes to read from the file.
;應該從文件中讀出多少字節。
; http://php.net/session.entropy-length
;session.entropy_length = 32

; Specified here to create the session id.
; http://php.net/session.entropy-file
; Defaults to /dev/urandom
; On systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom
; If neither are found at compile time, the default is no entropy file.
; On windows, setting the entropy_length setting will activate the
; Windows random source (using the CryptoAPI)
;指定這裏用於建立session id。默認值是/dev/urandom。在沒有/dev/urandom但有/dev/arandom的系統上,這個默認值會被設置

;爲/dev/arandom。若是在編譯的時候也沒有找到這個目錄,那麼默認值是沒有熵文件。在windows上,設置entropy_length會激活Windows的隨機

;源(使用CryptoAPI)。
;session.entropy_file = /dev/urandom

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
;設置這個值爲nocache、private或者public來決定http緩存層面。或者保持這個值空白會避免發送反緩存的頭部。
; http://php.net/session.cache-limiter
session.cache_limiter = nocache

; Document expires after n minutes.
;文檔在n分鐘後過時。
; http://php.net/session.cache-expire
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users' security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in publicly accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
;trans sid支持默認是被禁用的。使用trans sid可能拿你的用戶安全去冒險。謹慎使用這個選項。
;- 用戶可能經過. email/irc/etc發送包含激活的session id的URL給其餘人
;- 包含激活的session id的URL可能被存放在能夠被公共訪問的電腦上。
;- 用戶可使用存放在瀏覽器的歷史和書籤中的URL,並用一樣的session id去訪問你的網站。
; http://php.net/session.use-trans-sid
session.use_trans_sid = 0

; Select a hash function for use in generating session ids.
; Possible Values
;   0  (MD5 128 bits)
;   1  (SHA-1 160 bits)
; This option may also be set to the name of any hash function supported by
; the hash extension. A list of available hashes is returned by the hash_algos()
; function.
;選擇一個哈希函數用於生成session id。
;可能的值:  0  (MD5 128 bits)    1  (SHA-1 160 bits)
;這個選項也能夠被設置爲哈希擴展中支持的任何哈希函數的名字。hash_algos()函數會返回可用的哈希函數列表。
; http://php.net/session.hash-function
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
;定義當轉換二進制的哈希數據爲可能的時候,每一個字符中應該存儲多少位。
; Possible values:
;   4  (4 bits: 0-9, a-f)
;   5  (5 bits: 0-9, a-v)
;   6  (6 bits: 0-9, a-z, A-Z, "-", ",")
; Default Value: 4
; Development Value: 5
; Production Value: 5
; http://php.net/session.hash-bits-per-character
session.hash_bits_per_character = 5

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
;URL重寫器會在一個定義HTML標籤的集合中查找URL。表單和自定義字段比較特殊。若是你在這裏包含它們,重寫器會添加一個帶有被添加到URLs的

;信息的隱藏input字段。若是你想若是你想讓XHTML一致,那麼移除表單入口。注意:全部的有效入口須要一個「=」,即便後面沒有值。

; 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"
; http://php.net/url-rewriter.tags
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

; Enable upload progress tracking in $_SESSION
;使在$_SESSION中能夠跟蹤上載進度。
; Default Value: On
; Development Value: On
; Production Value: On
; http://php.net/session.upload-progress.enabled
;session.upload_progress.enabled = On

; Cleanup the progress information as soon as all POST data has been read
; (i.e. upload completed).
;在全部的POST數據被讀取以後(也就是上載完成後),儘快清理進度信息。
; Default Value: On
; Development Value: On
; Production Value: On
; http://php.net/session.upload-progress.cleanup
;session.upload_progress.cleanup = On

; A prefix used for the upload progress key in $_SESSION
; Default Value: "upload_progress_"
;一個在$_SESSION用於上傳進度鍵(key)的前綴,默認是"upload_progress_"
; Development Value: "upload_progress_"
; Production Value: "upload_progress_"
; http://php.net/session.upload-progress.prefix
;session.upload_progress.prefix = "upload_progress_"

; The index name (concatenated with the prefix) in $_SESSION
; containing the upload progress information
; Default Value: "PHP_SESSION_UPLOAD_PROGRESS"
;$_SESSION中的索引名字(與前綴相連)。它包含上傳進度信息。默認值:"PHP_SESSION_UPLOAD_PROGRESS"
; Development Value: "PHP_SESSION_UPLOAD_PROGRESS"
; Production Value: "PHP_SESSION_UPLOAD_PROGRESS"
; http://php.net/session.upload-progress.name
;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS"

; How frequently the upload progress should be updated.
; Given either in percentages (per-file), or in bytes
; Default Value: "1%"
;上載進度應該被更新的頻率。指定爲百分比(每一個文件)或者用字節,默認值爲1%
; Development Value: "1%"
; Production Value: "1%"
; http://php.net/session.upload-progress.freq
;session.upload_progress.freq =  "1%"

; The minimum delay between updates, in seconds
; Default Value: 1
;更新之間的最小延遲(單位:秒),默認值爲1
; Development Value: 1
; Production Value: 1
; http://php.net/session.upload-progress.min-freq
;session.upload_progress.min_freq = "1"

[MSSQL]
; Allow or prevent persistent links.
;容許或者防止持續鏈接
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
;持續鏈接的最大數量,-1表明沒有限制
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
;鏈接的最大數量,-1表示沒有限制
mssql.max_links = -1

; Minimum error severity to display.
;顯示的最小的錯誤嚴重程度
mssql.min_error_severity = 10

; Minimum message severity to display.
;顯示的信息最小嚴重程度
mssql.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
;PHP3.0版的兼容模式
mssql.compatibility_mode = Off

; Connect timeout
;鏈接超時
;mssql.connect_timeout = 5

; Query timeout
;執行超時
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;有效範圍0 – 2147483647,默認爲4096
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;有效範圍0 – 2147483647,默認爲4096
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;限制批處理時每批的記錄的數量。0表明全部記錄做爲一批處理。
;mssql.batchsize = 0

; Specify how datetime and datetime columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;指定日期和日期列怎麼被返回。
;On=> 返回被轉換爲SQL server配置的數據
;Off=> 返回YYYY-MM-DD hh:mm:ss這個格式的值
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
;當鏈接到服務器的時候使用NT系統的身份認證
mssql.secure_connection = Off

; Specify max number of processes. -1 = library default
;指定最大進程數,-1表示按照庫默認
; msdlib defaults to 25
; FreeTDS defaults to 4096
;mssql.max_procs = -1

; Specify client character set.
; If empty or not set the client charset from freetds.conf is used
; This is only used when compiled with FreeTDS
;指定客戶端的字符集。若是這個設置爲空,freetds.conf指定的字符集就被使用。這僅僅適用於用FreeTDS編譯的時候
;mssql.charset = "ISO-8859-1"

[Assertion]
; Assert(expr); active by default.
; http://php.net/assert.active
;assert.active = On

; Issue a PHP warning for each failed assertion.
; http://php.net/assert.warning
;assert.warning = On

; Don't bail out by default.
; http://php.net/assert.bail
;assert.bail = Off

; User-function to be called if an assertion fails.
; http://php.net/assert.callback
;assert.callback = 0

; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().
;使用當前的error_reporting()從新計算表達式。設置爲真若是你想要error_reporting(0)圍繞eval()
; http://php.net/assert.quiet-eval
;assert.quiet_eval = 0

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
;包含文件的GUIDSA,IIDs或者文件名的使用類型庫的文件的路徑。
; http://php.net/com.typelib-file
;com.typelib_file =

; allow Distributed-COM calls
;容許分佈式COM調用
; http://php.net/com.allow-dcom
;com.allow_dcom = true

; autoregister constants of a components typelib on com_load()
;使用com_load()自動註冊組件類型庫的常量。
; http://php.net/com.autoregister-typelib
;com.autoregister_typelib = true

; register constants casesensitive
;註冊大小寫敏感的常量。
; http://php.net/com.autoregister-casesensitive
;com.autoregister_casesensitive = false

; show warnings on duplicate constant registrations
;展現複製的常量註冊警告
; http://php.net/com.autoregister-verbose
;com.autoregister_verbose = true

; The default character set code-page to use when passing strings to and from COM objects.
; Default: system ANSI code page
;當傳遞給或者從COM對象獲取時,代碼頁使用的默認字符集
;com.code_page=

[mbstring]
; language for internal character representation.
; This affects mb_send_mail() and mbstrig.detect_order.
;內部字符表明的語言。這個設置影響mb_send_mail() 和 mbstrig.detect_order
; http://php.net/mbstring.language
;mbstring.language = Japanese

; Use of this INI entry is deprecated, use global internal_encoding instead.
; internal/script encoding.
; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*)
; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
;對這個ini條目的使用不被同意,使用全局internal_encoding代替。
;內部/腳本編碼
;一些編碼不能夠做爲內部編碼使用(如 SJIS, BIG5, ISO-2022-*)。若是這個設置爲空,default_charset 或者 internal_encoding 或者 ;iconv.internal_encoding就被使用,優先級是:default_charset < internal_encoding < iconv.internal_encoding
;mbstring.internal_encoding =

; Use of this INI entry is deprecated, use global input_encoding instead.
; http input encoding.
; mbstring.encoding_traslation = On is needed to use this setting.
; If empty, default_charset or input_encoding or mbstring.input is used.
; The precedence is: default_charset < intput_encoding < mbsting.http_input
;對這個ini條目的使用不被同意,使用全局input_encoding代替。
;http輸入編碼
;mbstring.encoding_traslation = On就須要使用這個設置。若是這個設置爲空,default_charset 或者 input_encoding 或者 mbstring.http_input

;將會被使用,優先級是:default_charset < intput_encoding < mbsting.http_input
; http://php.net/mbstring.http-input
;mbstring.http_input =

; Use of this INI entry is deprecated, use global output_encoding instead.
; http output encoding.
; mb_output_handler must be registered as output buffer to function.
; If empty, default_charset or output_encoding or mbstring.http_output is used.
; The precedence is: default_charset < output_encoding < mbstring.http_output
; To use an output encoding conversion, mbstring's output handler must be set
; otherwise output encoding conversion cannot be performed.
;對這個ini條目的使用不被同意,使用全局output _encoding代替。
;http輸出編碼
;mb_output_handler必須被做爲輸出緩衝區註冊來使用。
;若是這個設置爲空,default_charset 或者 output_encoding 或者 mbstring.input將會被使用,優先級是:default_charset < output _encoding < ;mbsting.http_ output。爲了使用輸出編碼轉換,mbstring的輸出處理器必須被設置,不然輸出編碼轉換將會失效。
; http://php.net/mbstring.http-output
;mbstring.http_output =

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
;根據mbstring.internal_encoding的設置啓用自動編碼轉換,經過將這個配置設置爲On,輸入字符被轉換爲內部編碼。注意:不要爲輕便的

;libs/applications使用自動編碼轉換。
; http://php.net/mbstring.encoding-translation
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; "auto" detect order is changed according to mbstring.language
;自動編碼偵查順序。」auto」偵查順序會根據mbstring.language變化。
; http://php.net/mbstring.detect-order
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
;當字符不能夠從一個被轉換爲另一個時使用的替代字符
; http://php.net/mbstring.substitute-character
;mbstring.substitute_character = none

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
;使用mbstring函數重載(替換)單字節函數。mail(), ereg()等被 mb_send_mail(), mb_ereg()等重載。可能的值爲0,1,2,4或者他們的組合。例如:7

;表明重載它們全部
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
; http://php.net/mbstring.func-overload
;mbstring.func_overload = 0

; enable strict encoding detection. 
; Default: Off
;啓用嚴格編碼偵查,默認是Off
;mbstring.strict_detection = On

; This directive specifies the regex pattern of content types for which mb_output_handler()
; is activated.
; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
;這個指令指定mb_output_handler()被激活的文檔類型的正則表達式。默認值爲:

;mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
;mbstring.http_output_conv_mimetype=

[gd]
; Tell the jpeg decode to ignore warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
;告訴jpeg解碼忽略警告,而且視圖建立一個gd圖像。警告將會被做爲提示顯示出來。這個默認被禁用。
; http://php.net/gd.jpeg-ignore-warning
;gd.jpeg_ignore_warning = 0

[exif]  ;Exif是一種圖像文件格式,它的數據存儲與JPEG格式是徹底相同的
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
;Exif UNICODE用戶註釋被做爲UCS-2BE/UCS-2LE處理,而JIS做爲JIS。在mbstring的支持下,當mbstring.internal_encoding被設置爲空時,Exif會

;被自動的轉換爲相應的解碼設置。因爲解碼設置,你能夠區分摩托羅拉和英特爾的字節順序。解碼設置不能爲空。

; http://php.net/exif.encode-unicode
;exif.encode_unicode = ISO-8859-15

; http://php.net/exif.decode-unicode-motorola
;exif.decode_unicode_motorola = UCS-2BE

; http://php.net/exif.decode-unicode-intel
;exif.decode_unicode_intel    = UCS-2LE

; http://php.net/exif.encode-jis
;exif.encode_jis =

; http://php.net/exif.decode-jis-motorola
;exif.decode_jis_motorola = JIS

; http://php.net/exif.decode-jis-intel
;exif.decode_jis_intel    = JIS

[Tidy] ;tidy 是一個整潔的HTML結合清理和修復工具
; The path to a default tidy configuration file to use when using tidy
;使用tidy工具時默認的tidy配置文件所在路徑
; http://php.net/tidy.default-config
;tidy.default_config = /usr/local/lib/php/default.tcfg

; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
;是否tidy應該自動清理和修復輸出。
;警告:若是你生成如動態圖像等沒有html的內容,則不要使用這個選項
; http://php.net/tidy.clean-output
tidy.clean_output = Off

[soap] 簡單對象訪問協議
; Enables or disables WSDL caching feature.
;啓用或者禁用WSDL緩存特性
; http://php.net/soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1

; Sets the directory name where SOAP extension will put cache files.
;SOAP擴展存放緩存文件的目錄
; http://php.net/soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"

; (time to live) Sets the number of second while cached file will be used
; instead of original one.
;(生存時間)當緩存文件代替原始方法被使用時,設置這個秒數
; http://php.net/soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400

; Sets the size of the cache limit. (Max. number of WSDL files to cache)
;設置緩存限制。(緩存WSDL文件的最大數量)
soap.wsdl_cache_limit = 5

[sysvshm] 事件驅動模塊?
; A default size of the shared memory segment
;默認的共享內存段大小
;sysvshm.init_mem = 10000

[ldap] ;輕量目錄訪問協議
; Sets the maximum number of open links or -1 for unlimited.
;設置打開的鏈接的最大數,-1表明沒有限制。
ldap.max_links = -1

[mcrypt] 加密擴展
; For more information about mcrypt settings see http://php.net/mcrypt-module-open

; Directory where to load mcrypt algorithms
; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
;加載mcrypt算法的目錄
;默認值:它被編譯進libmcrypt目錄(一般是/usr/local/lib/libmcrypt)
;mcrypt.algorithms_dir=

; Directory where to load mcrypt modes
; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
;加載mcrypt模式的目錄。
;默認值:它被編譯進libmcrypt目錄(一般是/usr/local/lib/libmcrypt)
;mcrypt.modes_dir=

[dba] 
;dba.default_handler=

;[opcache] OPcache經過將 PHP 腳本預編譯的字節碼存儲到共享內存中來提高 PHP 的性能,存儲預編譯字節碼的好處就是 省去了每次加載和解析 ;PHP 腳本的開銷。
; Determines if Zend OPCache is enabled
;決定是否啓用Zend OPCache
;opcache.enable=0

; Determines if Zend OPCache is enabled for the CLI version of PHP
;決定Zend OPCache是否在PHP的CLI版本啓用
;opcache.enable_cli=0

; The OPcache shared memory storage size.
;OPcache共享內存大小
;opcache.memory_consumption=64

; The amount of memory for interned strings in Mbytes.
;給interned strings的總內存(單位:MB)
;opcache.interned_strings_buffer=4

; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 100000 are allowed.
;OPcache哈希表中鍵(腳本)的最大值
;opcache.max_accelerated_files=2000

; The maximum percentage of "wasted" memory until a restart is scheduled.
;直到重啓以前,「浪費」的內存的最大百分比
;opcache.max_wasted_percentage=5

; When this directive is enabled, the OPcache appends the current working
; directory to the script key, thus eliminating possible collisions between
; files with the same name (basename). Disabling the directive improves
; performance, but may break existing applications.
;當這個指令啓用時,OPcache將當前工做目錄添加到腳本鍵上,從而防止擁有相同名字(基名)的文件發生衝突。禁用這個指令能夠改進性能,可是

;可能使存在的程序崩潰。
;opcache.use_cwd=1

; When disabled, you must reset the OPcache manually or restart the
; webserver for changes to the filesystem to take effect.
;當禁用這個選項時,你必須手動重置OPcache或者重啓網絡服務器,使對文件系統的改變生效。
;opcache.validate_timestamps=1

; How often (in seconds) to check file timestamps for changes to the shared
; memory storage allocation. ("1" means validate once per second, but only
; once per request. "0" means always validate)
;檢查用於共享內存分配的改變的文件時間戳的頻率(以秒計數)。(「1」表明每秒驗證一次,可是每次只驗證一個請求,「0」表明老是驗證)
;opcache.revalidate_freq=2

; Enables or disables file search in include_path optimization
;啓用或者禁用在include_path的優化文件搜索
;opcache.revalidate_path=0

; If disabled, all PHPDoc comments are dropped from the code to reduce the
; size of the optimized code.
;若是被禁用,全部的PHPDoc註釋會從代碼中被丟棄,目的是減輕優化的代碼的大小。
;opcache.save_comments=1

; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments"
; may be always stored (save_comments=1), but not loaded by applications
; that don't need them anyway.
;若是被禁用,PHPDoc註釋不會從SHM中加載,因此「Doc註釋」老是會被存儲(save_comments=1),可是不會被根本不須要它們的應用加載。
;opcache.load_comments=1

; If enabled, a fast shutdown sequence is used for the accelerated code
;若是啓用,一個快速關機序列會被用於加速代碼
;opcache.fast_shutdown=0

; Allow file existence override (file_exists, etc.) performance feature.
;容許重寫存在文件(file_exists等)的性能特徵。
;opcache.enable_file_override=0

; A bitmask, where each bit enables or disables the appropriate OPcache
; passes
;一個位掩碼,它的每一位啓用或者禁用恰當的OPcache通路。
;opcache.optimization_level=0xffffffff

;opcache.inherited_hack=1
;opcache.dups_fix=0

; The location of the OPcache blacklist file (wildcards allowed).
; Each OPcache blacklist file is a text file that holds the names of files
; that should not be accelerated. The file format is to add each filename
; to a new line. The filename may be a full path or just a file prefix
; (i.e., /var/www/x  blacklists all the files and directories in /var/www
; that start with 'x'). Line starting with a ; are ignored (comments).
;OPcache黑名單列表文件所在的路徑(容許使用通配符)。每一個OPcache黑名單文件是一個文本文件,它包含不被加速的文件的文件名。這個文件的

;格式是將每一個文件名添加到一個新行。這個文件名能夠是徹底路徑或者只是一個前綴。以」;」開頭的行是被忽略的(註釋)
;opcache.blacklist_filename=

; Allows exclusion of large files from being cached. By default all files
; are cached.
;容許排除大文件被緩存。默認的,全部文件都被緩存。
;opcache.max_file_size=0

; Check the cache checksum each N requests.
; The default value of "0" means that the checks are disabled.
;每N個請求檢查一次緩存校驗和。「0」表示禁用這個選項
;opcache.consistency_checks=0

; How long to wait (in seconds) for a scheduled restart to begin if the cache
; is not being accessed.
;若是緩存沒有被訪問,須要多長時間(單位:秒)等待一個計劃的重啓。
;opcache.force_restart_timeout=180

; OPcache error_log file name. Empty string assumes "stderr".
;OPcache記錄日誌的文件名。空則假定爲「stderr」
;opcache.error_log=

; All OPcache errors Go to the Web server log.
; By default, only fatal errors (level 0) or errors (level 1) are logged.
; You can also enable warnings (level 2), info messages (level 3) or
; debug messages (level 4).
;全部的OPcache錯誤記錄到網絡服務器日誌。
;默認的,只有致命錯誤(等級0)或者錯誤(等級1)被記錄。
;你也能夠啓用警告(等級2),通知信息(等級3)或者調試信息(等級4)
;opcache.log_verbosity_level=1

; Preferred Shared Memory back-end. Leave empty and let the system decide.
;優先共享內存後端。留空則由系統決定
;opcache.preferred_memory_model=

; Protect the shared memory from unexpected writing during script execution.
; Useful for internal debugging only.
;保護共享內存在腳本執行期間不被意外的寫入。這隻對於內部調試有用。
;opcache.protect_memory=0

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
;CURLOPT_CAINFO選項的默認值。這要求是一個絕對路徑
;curl.cainfo =

[openssl]
; The location of a Certificate Authority (CA) file on the local filesystem
; to use when verifying the identity of SSL/TLS peers. Most users should
; not specify a value for this directive as PHP will attempt to use the
; OS-managed cert stores in its absence. If specified, this value may still
; be overridden on a per-stream basis via the "cafile" SSL stream context
; option.
;SSL/TLS節點的身份驗證須要使用的認證受權文件在本地服務器上的位置。大部分用戶不用爲這個指令指定值,由於在找不到它的狀況下,PHP會嘗試

;使用存在系統管理的CA。若是指定,這個值也能夠經過"cafile"SSL流上下文選項,在每一個流一次的基礎上被重寫。
;openssl.cafile=

; If openssl.cafile is not specified or if the CA file is not found, the
; directory pointed to by openssl.capath is searched for a suitable
; certificate. This value must be a correctly hashed certificate directory.
; Most users should not specify a value for this directive as PHP will
; attempt to use the OS-managed cert stores in its absence. If specified,
; this value may still be overridden on a per-stream basis via the "capath"
; SSL stream context option.
;若是openssl.cafile沒有被指定或者CA文件沒有被找到,將會在openssl.capath指定的目錄下查找適合的證書。這個值必須是一個正確的散列證書目

;錄。大部分用戶不用爲這個指令指定值,由於在找不到它的狀況下,PHP會嘗試使用存在系統管理的CA。若是指定,這個值也能夠經過" capath "SSL

;流上下文選項,在每一個流一次的基礎上被重寫。;openssl.capath=; Local Variables: 本地變量; tab-width: 4; End:

相關文章
相關標籤/搜索