php.ini

来源:http://www.cnblogs.com/buxiangxin/archive/2016/11/14/6062363.html
-Advertisement-
Play Games

[PHP];;;;;;;;;;;;;;;;;;;; About php.ini ;;;;;;;;;;;;;;;;;;;;; PHP's initialization file, generally called php.ini, is responsible for; configuring man ...


[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]後的指令只應用於;在

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

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

http://php.net/ini.sections


; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different 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),或者是一個表

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

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


; 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十分相似,只是當錯誤發生時,它顯示的越詳細。我們建議僅僅在開發環境中使用它,因為展示給用戶的錯誤信

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

; 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 和 ?>,而禁止掉這個特性,因為它可能導致在生

; 成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="[email protected]"

; 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入口,取而代之的是使用全

您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • 學習編程語言,列印簡單的金字塔是基礎的案例,在這裡就簡單的寫了個案例,希望能幫助到各位 效果 * *** ***** ******* ********* *********** ************* *************** import java.util.Scanner; //導入輸 ...
  • 1、對象和類的概念: 對象——用電腦語言對問題域中事物的描述,對象通過屬性和方法,來分別表示事物所具有靜態屬性和動態屬性。 類——類是用來描述同一類型的對象的一種抽象的概念,類中定義了這一類對象所具有的靜態和動態屬性。 類可以看做是對象的一種抽象,對象則是類的一個具體實例。 2、類和對象的創建和使 ...
  • 最近在用python寫介面的測試程式,期間用到解析字典獲取某個key的value,由於多個介面返回的字典格式不是固定的並存在多層嵌套的情況。在字典的方法中也沒有找到可直接達到目的的方法(也可能是我對字典的方法瞭解的不深的緣故),於是自己寫了個程式。 ...
  • 我們在代碼中獲取一個文件路徑的尾碼,是一個很簡單的事. 如C#中,可以通過new FileInfo(filePath).Extension,或者Path.GetExtension(filePath)獲取。 而Excel的大數據中,直接批量獲取同行單元格內容中文件路徑的尾碼,該如何獲取? 如上,想獲取 ...
  • 一.Window中常見的dos命令 在哪裡操作dos命令: Win7 > 開始 》所有程式 》附件 》命令提示符 Win7--> 開始 》運行 》輸入cmd 1.1 盤符的切換: 盤符眀+冒號 格式: 盤符: 例子: 想從C盤到D盤 C:/User/xxxx D: 1.2 文件夾的操作 dir :顯 ...
  • [1]類 [2]成員屬性 [3]成員方法 [4]對象 [5]成員訪問 [6]this ...
  • 解釋:首先瀏覽器發送一個請求、給/StrutsPrepareAndExecuteFilter調用doFilter()方法、創建/StrutsActionProxy執行execute()方法、有一個引用/DefaultActionInvocation調invoke()方法、接著去調用其他攔截器的方法、 ...
  • 在討論這個問題之前,我們需要先區分unicode和UTF。 1. unicode :統一的字元編號,僅僅提供字元與編號間映射。符號數量在不斷增加,已超百萬。詳細:[https://zh.wikipedia.org/zh cn/Unicode] 1. UTF :unicode轉換格式 (unicode ...
一周排行
    -Advertisement-
    Play Games
  • 移動開發(一):使用.NET MAUI開發第一個安卓APP 對於工作多年的C#程式員來說,近來想嘗試開發一款安卓APP,考慮了很久最終選擇使用.NET MAUI這個微軟官方的框架來嘗試體驗開發安卓APP,畢竟是使用Visual Studio開發工具,使用起來也比較的順手,結合微軟官方的教程進行了安卓 ...
  • 前言 QuestPDF 是一個開源 .NET 庫,用於生成 PDF 文檔。使用了C# Fluent API方式可簡化開發、減少錯誤並提高工作效率。利用它可以輕鬆生成 PDF 報告、發票、導出文件等。 項目介紹 QuestPDF 是一個革命性的開源 .NET 庫,它徹底改變了我們生成 PDF 文檔的方 ...
  • 項目地址 項目後端地址: https://github.com/ZyPLJ/ZYTteeHole 項目前端頁面地址: ZyPLJ/TreeHoleVue (github.com) https://github.com/ZyPLJ/TreeHoleVue 目前項目測試訪問地址: http://tree ...
  • 話不多說,直接開乾 一.下載 1.官方鏈接下載: https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads 2.在下載目錄中找到下麵這個小的安裝包 SQL2022-SSEI-Dev.exe,運行開始下載SQL server; 二. ...
  • 前言 隨著物聯網(IoT)技術的迅猛發展,MQTT(消息隊列遙測傳輸)協議憑藉其輕量級和高效性,已成為眾多物聯網應用的首選通信標準。 MQTTnet 作為一個高性能的 .NET 開源庫,為 .NET 平臺上的 MQTT 客戶端與伺服器開發提供了強大的支持。 本文將全面介紹 MQTTnet 的核心功能 ...
  • Serilog支持多種接收器用於日誌存儲,增強器用於添加屬性,LogContext管理動態屬性,支持多種輸出格式包括純文本、JSON及ExpressionTemplate。還提供了自定義格式化選項,適用於不同需求。 ...
  • 目錄簡介獲取 HTML 文檔解析 HTML 文檔測試參考文章 簡介 動態內容網站使用 JavaScript 腳本動態檢索和渲染數據,爬取信息時需要模擬瀏覽器行為,否則獲取到的源碼基本是空的。 本文使用的爬取步驟如下: 使用 Selenium 獲取渲染後的 HTML 文檔 使用 HtmlAgility ...
  • 1.前言 什麼是熱更新 游戲或者軟體更新時,無需重新下載客戶端進行安裝,而是在應用程式啟動的情況下,在內部進行資源或者代碼更新 Unity目前常用熱更新解決方案 HybridCLR,Xlua,ILRuntime等 Unity目前常用資源管理解決方案 AssetBundles,Addressable, ...
  • 本文章主要是在C# ASP.NET Core Web API框架實現向手機發送驗證碼簡訊功能。這裡我選擇是一個互億無線簡訊驗證碼平臺,其實像阿裡雲,騰訊雲上面也可以。 首先我們先去 互億無線 https://www.ihuyi.com/api/sms.html 去註冊一個賬號 註冊完成賬號後,它會送 ...
  • 通過以下方式可以高效,並保證數據同步的可靠性 1.API設計 使用RESTful設計,確保API端點明確,並使用適當的HTTP方法(如POST用於創建,PUT用於更新)。 設計清晰的請求和響應模型,以確保客戶端能夠理解預期格式。 2.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...