程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> php配置中文解說

php配置中文解說

編輯:關於PHP編程

php教程配置中文解說

先看看大家看到的php.ini

[PHP]

;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHP installations.
; By default, PHP installs itself with a configuration suitable for
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should be taken
; before going online with your site, please consult php.ini-recommended
; and http://www.bKjia.c0m
;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; This file controls many asp教程ects of PHP's behavior.  In order for PHP to
; read it, it must be named 'php.ini'.  PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory.  The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
; 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.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
;
; 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), or a quoted string ("foo").
;
; Expressions in the INI file are limited to bitwise operators and parentheses:
; |        bitwise OR
; &        bitwise AND
; ~        bitwise NOT
; !        boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
;
;  foo =         ; sets foo to an empty string
;  foo = none    ; sets foo to an empty string
;  foo = "none"  ; sets foo to the string 'none'
;
; 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.
;
;
;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; All the values in the php.ini-dist file correspond to the builtin
; defaults (that is, if no php.ini is used, or if you delete these lines,
; the builtin defaults will be identical).


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

; Enable the PHP scripting language engine under Apache.
engine = On

; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = Off

; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On

; Allow ASP-style <% %> tags.
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
precision    =  12

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
y2k_compliance = On

; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit.  You can enable output buffering during runtime by calling the output
; buffering functions.  You can also enable output buffering for all files by
; setting this directive to On.  If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On', as
; a value for this directive (e.g., output_buffering=4096).
output_buffering = On

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
;       directive. Instead, explicitly set the output handler using ob_start().
;       Using this ini directive may cause problems unless you know what script
;       is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
;       and you cannot use both "ob_gzhandler" and "zlib.output_compression".
; Note: output_handler must be empty if this is set 'On' !!!!
;       Instead you must use zlib.output_handler.
;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)
; Note: Resulting chunk size may vary due to nature of compression. PHP
;       outputs chunks that are few hundreds bytes each as a result of
;       compression. If you prefer a larger chunk size for better
;       performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
;       output_handler, or otherwise the output will be corrupted.
zlib.output_compression = Off
;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_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.
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 = 100

; Whether to enable the ability to force arguments to be passed by reference
; at function call time.  This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend.  The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration.  You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
allow_call_time_pass_reference = On

;
; Safe Mode
;
safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
safe_mode_exec_dir =

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

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
safe_mode_protected_env_vars = LD_LIBRARY_PATH

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

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

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

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style="color: ???????"> would work.
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF
;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 request, which may end up
; being interrupted by the user or a browser timing out.
; 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.
; 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_cache_ttl=120

;
; Misc
;
; 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.
expose_php = On


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

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit = 128M      ; Maximum amount of memory a script may consume (128MB)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL             - All errors and warnings (doesn't include 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's automatically initialized to an
;                     empty string)
; 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
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; 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
;
; Examples:
;
;   - Show all errors, except for notices and coding standards warnings
;
;error_reporting = E_ALL & ~E_NOTICE
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE | E_STRICT
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors except for notices and coding standards warnings
;
error_reporting = E_ALL & ~E_NOTICE

; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
;
; possible values for display_errors:
;
; Off        - Do not display any errors
; stderr     - Display errors to STDERR (affects only CGI/CLI binaries!)
;
;display_errors = "stderr"
;
; stdout (On) - Display errors to STDOUT
;
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed.  It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = Off

; 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.
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_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.
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
report_memleaks = On

;report_zend_debug = 0

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; Turn off normal error reporting and emit XML-RPC error XML
;xmlrpc_errors = 0
; An XML-RPC faultCode
;xmlrpc_error_number = 0

; Disable the inclusion of HTML tags in error messages.
; Note: Never use this feature for production boxes.
;html_errors = Off

; If html_errors is set On 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://www.php.net/docs.php
; 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.
; Note: Never use this feature for production boxes.
;docref_root = "/phpmanual/"
;docref_ext = .html

; String to output before an error message.
;error_prepend_string = "<font color=#ff0000>"

; String to output after an error message.
;error_append_string = "</font>"

; Log errors to specified file.
;error_log = filename

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog


;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;
;
; Note - track_vars is ALWAYS enabled as of PHP 4.0.3

; The separator used in PHP generated URLs to separate arguments.
; Default is "&".
;arg_separator.output = "&amp;"

; List of separator(s) used by PHP to parse input URLs into variables.
; Default is "&".
; NOTE: Every character in this directive is considered as separator!
;arg_separator.input = ";&"

; This directive describes the order in which PHP registers GET, POST, Cookie,
; Environment and Built-in variables (G, P, C, E & S respectively, often
; referred to as EGPCS or GPC).  Registration is done from left to right, newer
; values override older values.
variables_order = "EGPCS"

; Whether or not to register the EGPCS variables as global variables.  You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data.  This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
;
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = On

; Whether or not to register the old-style input arrays, HTTP_GET_VARS
; and friends.  If you're not using them, it's recommended to turn them off,
; for performance reasons.
register_long_arrays = On

; This directive tells PHP whether to declare the argv&argc variables (that
; would contain the GET information).  If you don't use these variables, you
; should turn it off for increased performance.
register_argc_argv = On

; When enabled, the SERVER and ENV 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 directives register_globals, register_long_arrays,
; and register_argc_argv must be disabled for this directive to have any affect.
auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
post_max_size = 100M

; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = On

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of ').
magic_quotes_sybase = Off

; Automatically add files before or after any PHP document.
auto_prepend_file =
auto_append_file =

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header.  To disable sending of the charset, simply
; set it to be empty.
;
; PHP's built-in default is text/html
default_mimetype = "text/html"
;default_charset = "iso-8859-1"

; Always populate the $HTTP_RAW_POST_DATA variable.
;always_populate_raw_post_data = On


;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "path1;path2"
;include_path = ".;c:phpincludes"

; 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
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = "D:phpStudyphpStudyPHP5ext"

; 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.
enable_dl = On

; 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.force_redirect = 1

; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request.
; 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.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 it's 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=0

; 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.impersonate = 1;

; Disable logging through FastCGI connection
; fastcgi.logging = 0

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 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 = 0


;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 100M


; 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.
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = Off

; Define the anonymous ftp password (your email address)
;from="[email protected]"

; Define the User-Agent string
; user_agent="PHP"

; Default timeout for socket based streams (seconds)
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.
; auto_detect_line_endings = Off


;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example, on Windows:
;
;   extension=msql.dll
;
; ... or under UNIX:
;
;   extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here.  Specify the location of the extension with the
; extension_dir directive above.


; Windows Extensions
; 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.

;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_msql.dll
;extension=php_mssql.dll
extension=php_mysql教程.dll
;extension=php_mysqli.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_ps教程pell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
extension=php_zip.dll

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
date.timezone =PRC

;date.default_latitude = 31.7667
;date.default_longitude = 35.2333

;date.sunrise_zenith = 90.583333
;date.sunset_zenith = 90.583333

[filter]
;filter.default = unsafe_raw
;filter.default_flags =

[iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1

[sqlite]
;sqlite.assoc_case = 0

[Pcre]
;PCRE library backtracking 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.recursion_limit=100000

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
; runtime, you can define these variables by calling define_syslog_variables().
define_syslog_variables  = Off

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = [email protected]

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;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(), even in safe mode.
;mail.force_extra_parameters =

[SQL]
sql.safe_mode = Off

[ODBC]
;odbc.default_db    =  Not yet implemented
;odbc.default_user  =  Not yet implemented
;odbc.default_pw    =  Not yet implemented

; Allow or prevent persistent links.
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
odbc.check_persistent = On

; Maximum number of persistent links.  -1 means no limit.
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
odbc.max_links = -1

; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
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 uodbc.defaultlrl and uodbc.defaultbinmode
odbc.defaultbinmode = 1

[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
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.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
mysql.default_user =

; Default password for mysql_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("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.
mysql.default_password =

; Maximum time (in seconds) for connect timeout. -1 means no limit
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
mysql.trace_mode = Off

[MySQLi]

; Maximum number of links.  -1 means no limit.
mysqli.max_links = -1

; 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.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysqli.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
mysqli.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
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.default_pw =

; Allow or prevent reconnect
mysqli.reconnect = Off

[mSQL]
; Allow or prevent persistent links.
msql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
msql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
msql.max_links = -1

[OCI8]
; enables privileged connections using external credentials (OCI_SYSOPER, OCI_SYSDBA)
;oci8.privileged_connect = Off

; Connection: The maximum number of persistent OCI8 connections per
; process. Using -1 means no limit.
;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.
;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.
;oci8.ping_interval = 60

; Tuning: This option enables statement caching, and specifies how
; many statements to cache. Using 0 disables statement caching.
;oci8.statement_cache_size = 20

; Tuning: Enables statement prefetching and sets the default number of
; rows that will be fetched automatically after statement execution.
;oci8.default_prefetch = 10

; Compatibility. Using On means oci_close() will not close
; oci_connect() and oci_new_connect() connections.
;oci8.old_oci_close_semantics = Off

[PostgresSQL]
; Allow or prevent persistent links.
pgsql.allow_persistent = On

; Detect broken persistent links always with pg_pconnect().
; Auto reset feature requires a little overheads.
pgsql.auto_reset_persistent = Off

; Maximum number of persistent links.  -1 means no limit.
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
pgsql.ignore_notice = 0

; Log PostgreSQL backends Notice message or not.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
pgsql.log_notice = 0

[Sybase]
; Allow or prevent persistent links.
sybase.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
sybase.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
sybase.max_links = -1

;sybase.interface_file = "/usr/sybase/interfaces"

; Minimum error severity to display.
sybase.min_error_severity = 10

; Minimum message severity to display.
sybase.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
; If on, this will cause PHP to automatically assign types to results according
; to their Sybase type, instead of treating them all as strings.  This
; compatibility mode will probably not stay around forever, so try applying
; whatever necessary changes to your code, and turn it off.
sybase.compatability_mode = Off

[Sybase-CT]
; Allow or prevent persistent links.
sybct.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
sybct.max_links = -1

; Minimum server message severity to display.
sybct.min_server_severity = 10

; Minimum client message severity to display.
sybct.min_client_severity = 10

[bcmath]
; Number of decimal digits for all bcmath functions.
bcmath.scale = 0

[browscap]
;browscap = extra/browscap.ini

[Informix]
; Default host for ifx_connect() (doesn't apply in safe mode).
ifx.default_host =

; Default user for ifx_connect() (doesn't apply in safe mode).
ifx.default_user =

; Default password for ifx_connect() (doesn't apply in safe mode).
ifx.default_password =

; Allow or prevent persistent links.
ifx.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
ifx.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
ifx.max_links = -1

; If on, select statements return the contents of a text blob instead of its id.
ifx.textasvarchar = 0

; If on, select statements return the contents of a byte blob instead of its id.
ifx.byteasvarchar = 0

; Trailing blanks are stripped from fixed-length char columns.  May help the
; life of Informix SE users.
ifx.charasvarchar = 0

; If on, the contents of text and byte blobs are dumped to a file instead of
; keeping them in memory.
ifx.blobinfile = 0

; NULL's are returned as empty strings, unless this is set to 1.  In that case,
; NULL's are returned as string 'NULL'.
ifx.nullformat = 0

[Session]
; Handler used to store/retrieve data.
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.
;
; As of PHP 4.0.1, you can define the path 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 you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; 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.
;session.save_path = "/tmp"

; Whether to use cookies.
session.use_cookies = 1

;session.cookie_secure =

; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1

; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
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.
session.cookie_httponly =

; Handler used to serialize data.  php is the standard serializer of PHP.
session.serialize_handler = php

; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.

session.gc_probability = 1
session.gc_divisor     = 100

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
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):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.

session.bug_compat_42 = 1
session.bug_compat_warn = 1

; 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.
session.referer_check =

; How many bytes to read from the file.
session.entropy_length = 0

; Specified here to create the session id.
session.entropy_file =

;session.entropy_length = 16

;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.
session.cache_limiter = nocache

; Document expires after n minutes.
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 publically accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
session.use_trans_sid = 0

; Select a hash function
; 0: MD5   (128 bits)
; 1: SHA-1 (160 bits)
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
;
; 4 bits: 0-9, a-f
; 5 bits: 0-9, a-v
; 6 bits: 0-9, a-z, A-Z, "-", ","
session.hash_bits_per_character = 4

; 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_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
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.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. -1 = library default
; 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.comf is used
; This is only used when compiled with FreeTDS
;mssql.charset = "ISO-8859-1"

[Assertion]
; Assert(expr); active by default.
;assert.active = On

; Issue a PHP warning for each failed assertion.
;assert.warning = On

; Don't bail out by default.
;assert.bail = Off

; User-function to be called if an assertion fails.
;assert.callback = 0

; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().
;assert.quiet_eval = 0

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
;com.typelib_file =
; allow Distributed-COM calls
;com.allow_dcom = true
; autoregister constants of a components typlib on com_load()
;com.autoregister_typelib = true
; register constants casesensitive
;com.autoregister_casesensitive = false
; show warnings on duplicate constant registrations
;com.autoregister_verbose = true

[mbstring]
; language for internal character representation.
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
;mbstring.internal_encoding = EUC-JP

; http input encoding.
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
;mbstring.http_output = SJIS

; 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.encoding_translation = Off

; automatic encoding detection order.
; auto means
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
;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.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
;mbstring.func_overload = 0

[FrontBase]
;fbsql.allow_persistent = On
;fbsql.autocommit = On
;fbsql.show_timestamp_decimals = Off
;fbsql.default_database =
;fbsql.default_database_password =
;fbsql.default_host =
;fbsql.default_password =
;fbsql.default_user = "_SYSTEM"
;fbsql.generate_warnings = Off
;fbsql.max_connections = 128
;fbsql.max_links = 128
;fbsql.max_persistent = -1
;fbsql.max_results = 128

[gd]
; Tell the jpeg decode to libjpeg warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
;gd.jpeg_ignore_warning = 0

[exif]
; 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.encode_unicode = ISO-8859-15
;exif.decode_unicode_motorola = UCS-2BE
;exif.decode_unicode_intel    = UCS-2LE
;exif.encode_jis =
;exif.decode_jis_motorola = JIS
;exif.decode_jis_intel    = JIS

[Tidy]
; The path to a default tidy configuration file to use when using tidy
;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.clean_output = Off

[soap]
; Enables or disables WSDL caching feature.
soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files.
soap.wsdl_cache_dir="/tmp"
; (time to live) Sets the number of second while cached file will be used
; instead of original one.
soap.wsdl_cache_ttl=86400

; Local Variables:
; tab-width: 4
; End:

[Zend]
zend_extension_manager.optimizer_ts ="D:phpStudyphpStudyZendOptimizerlibOptimizer"
zend_extension_ts = "D:phpStudyphpStudyZendOptimizerlibZendExtensionManager.dll"
zend_optimizer.optimization_level=15


再來看個中文版的php.ini
;;;;;;;;;;;
; 警告 ;
;;;;;;;;;;;
; 此配置文件是對於新安裝的PHP的默認設置.
; 默認情況下,PHP使用此配置文件安裝
; 此配置針對開發目的,並且*不是*針對生產環境
; 基於一些安全方面的考慮,在你的網站上線之前,請考慮使用php.ini-recommended
; 以及在線文檔 http://php.net/manual/en/security.php.


;;;;;;;;;;;;;;;;;;;
; 關於 php.ini   ;
;;;;;;;;;;;;;;;;;;;
; 此文件控制了PHP行為的很多方面.  為了讓PHP能夠讀取它
; 必須命名為 'php.ini'.  PHP 在其當前工作目錄,由PHPRC環境變量指定目錄
; 以及由編譯時指定的目錄(按此順序)查找此文件
; 在Windows環境下, 編譯時目錄是Windows目錄.
; 在命令行模式下查找php.ini的目錄可以被-c參數覆蓋.
;
; 此文件的語法非常簡單.
; 空行和由分號開始的行會被忽略(你可能已經猜到了).
; 段的開頭(例如 [Foo]) 同樣會被悄悄忽略
; 即使在將來他們可能會有其他作用.
;
; 使用以下語法來設定指令:
; directive = value
; 指令 = 值
; 指令名稱是 *大小寫敏感* - foo=bar 和 FOO=bar 是不同的.
;
; 值可以是字符串,數值,PHP常量 (例如 E_ALL 和 M_PI),
; INI 常量 (On, Off, True, False, Yes, No 和 None) 或者一個表達式
; (例如 E_ALL & ~E_NOTICE), 或者帶引號的字串 ("foo").
;
; 在INI文件中的表達式只能使用邏輯運算和圓括號:
; |        邏輯或
; &       邏輯與
; ~       邏輯非
; !        取反
;
; 邏輯標志可以使用1,On,True或者Yes來打開.
; 也可以使用0, Off, False 或者 No來關閉.
;
; 在等號後面不寫任何內容代表了一個空字符串
; 或者使用 None 關鍵詞:
;
;  foo =         ; 將foo設置成一個空字串
;  foo = none    ; 將foo設置成一個空字串
;  foo = "none"  ; 將foo設置成字串 'none'
;
; 如果你在值中使用了常量, 並且這個常量屬於一個動態加載的擴展模塊
; (不論是PHP擴展還是Zend擴展),
; 那你只能在加載這些擴展 *之後* 使用這些常量.
;
;
;;;;;;;;;;;;;;;;;;;
; 關於這個文件  ;
;;;;;;;;;;;;;;;;;;;
; 在php.ini-dist 文件中所有的值都相當於內建的默認值
; (就是如果沒有使用php.ini, 或者如果你刪除了這些行,
; 就和內建的默認值一樣).


;;;;;;;;;;;;;;;;;;;;
; 語言選項 ;
;;;;;;;;;;;;;;;;;;;;

; 打開在Apache下的PHP腳本語言引擎
engine = On

; 打開Zend Engine兼容模式(PHP 4.x)
zend.ze1_compatibility_mode = Off

; 允許 <? 標簽.  否則,只有 <?php 和 <script> 標簽被認為是PHP腳本.
; 注意: 盡可能避免在開發可重新發布的程序或者庫的時候使用簡略標簽,或者在不受你控制的服務器下發布,
; 因為簡略標簽可能不被目標服務器支持.為了可移植性, 可重新發布的代碼, 請不要使用簡略標簽
short_open_tag = On

; 使用ASP風格 <% %> 標簽.
asp_tags = Off

; 浮點數中數值的有效位數(浮點數精度).
precision    =  12

; 強制2000年兼容 (可能引起不兼容浏覽器的問題)
y2k_compliance = On

; 輸出緩沖允許在你發送了body內容之後發送header(包括 cookies)
; 代價是稍稍減緩了PHP輸出層
; 你可以在運行時調用 output buffering 函數來打開此功能
; 你也可以將此指令設置為On來對所有文件打開輸出緩沖
; 如果你想將這個緩沖區限制到特定大小 - 你可以使用最大的字節數來代替'On',來作為這個指令的參數 (例如 output_buffering=4096).
output_buffering = Off

; 你可以將所有你腳本輸出的內容重定向到指定函數. 
; 例如, 如果你設置 output_handler 到 "mb_output_handler",
; 字符編碼會被轉換成為指定的編碼..
; 設置任何的輸出處理句柄會自動打開輸出緩沖.
; 注意: 如果想編寫可移植腳本就不要依賴此INI配置
;       取而代之的是, 明確的使用 ob_start() 來設置輸出處理句柄.
;       使用此ini指令可能引起問題,除非你很清楚的理解腳本正在做什麼.
; 注意: 你不能同時使用 "mb_output_handler" 和 "ob_iconv_handler"
;       並且你不能同時使用 "ob_gzhandler" 和 "zlib.output_compression".
; 注意: 如果使用zlib.output_handler指令開啟zlib輸出壓縮, 該指令必須為空.
;output_handler =

; 使用zlib庫對輸出進行壓縮
; 對此選項的有效值是 'off', 'on', 或者字節數 (用來壓縮的緩沖大小 , 默認是 4KB)
; 注意: 結果的chunk大小可能由於壓縮對象的大小而不同.
;       PHP輸出塊的大小一般壓縮之後每個大小時幾百個字節.
;       如果你希望藉由一個大塊的堆大小來獲取更好的性能, 需要額外的打開 output_buffering 選項.
; 注意: 你必須使用 zlib.output_handler 來替代標准的
;       output_handler, 否則輸出可能會有問題.
zlib.output_compression = Off
;zlib.output_compression_level = -1

; 這裡激活 zlib.output_compression 之後,你無法再指定額外的輸出處理.
; 這個設置和 output_handler 一樣,但是處理順序不同.
;zlib.output_handler =

; 立即刷新告知 PHP 讓輸出層在每次輸出塊之後立刻自動刷新.
; 這和每次調用print()或者echo()函數以及任何一種HTML塊後調用flush()一樣.
; 打開此選項會嚴重導致性能下降,一般只有用於調試情況下才建議打開.
implicit_flush = Off

; 如果反序列器找到一個可以作為示例的未定義類.未序列化的回調函數會被調用(使用未定義的類名作為參數),
; 如果特定的函數未被定義或者如果此函數沒有包含/實現丟失的類,則會發生一個警告.
; 如果只有你真想要實現類似的回調函數,才設定此入口.
unserialize_callback_func=

; 當浮點和雙精度被序列化後,浮點號後由 serialize_precision 指定存儲精確度的有效位數.
; 默認值是當浮點數被反序列解碼後,數值仍舊相同.
serialize_precision = 100

; 是否打開強制通過引用傳遞參數給函數
; 此方法被反對並且很有可能在未來版本的PHP/Zend中不再被支持.
; 被孤立的指定的方法是參數應該在函數被聲明的時候按照引用傳入.
; 你被鼓勵來嘗試上述方法並關閉此選項來確保你腳本在今後的新版本中仍舊可以正常工作 ( 每次你使用此特性的時候會受到一個警告
; 並且參數會傳值而不是傳引用).
allow_call_time_pass_reference = On

;
; 安全模式
;
safe_mode = Off

; 默認情況下,安全模式在打開文件時,使用UID來比對檢測.
; 如果你只想使用GID做寬松的比對,
; 打開 safe_mode_gid.
safe_mode_gid = Off

; 當 safe_mode 被打開, 此目錄下包含的文件和子文件夾的UID/GID 檢測會被繞過.
; (目錄必須在 include_path 中存在或者必須在包含時使用全路徑)
safe_mode_include_dir =

; 當 safe_mode 被打開, 只有在 safe_mode_exec_dir 中定義的可執行文件能夠通過exec函數組打開執行.
safe_mode_exec_dir =

; 設定某些的環境變量可能成為潛在的安全隱患.
; 此指令包含一個逗號分隔的前導列表.
; 在安全模式中, 用戶可能只能改變符合這裡所給出前導字符的變量.
; 默認情況下,用戶只能改變以PHP_開頭的變量(例如. PHP_FOO=BAR).
;
; 注意:  如果此指令為空, PHP會允許用戶修改任何環境變量!
safe_mode_allowed_env_vars = PHP_

; 此指令包含了一個用逗號分隔的環境變量列表, 用戶無法通過 putenv() 函數來修改列表中的環境變量.
; 這些變量即便已經在 safe_mode_allowed_env_vars 所設定的列表中,也會被被保護不允許修改.
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; 如果設置了open_basedir, 將會限制文件操作只能是此指令下的目錄和子目錄.
; 此指令對於每目錄或者每虛擬主機配置文件最有意義. 此指令* 不會 *受安全模式開或者關的影響.
;open_basedir =

; 此指令允許你為了安全原因關閉指定的函數.
; 它接受以逗號分隔的函數名的列表.
; 此指令* 不會 *受安全模式開或者關的影響.
disable_functions =

; 此指令允許你由於安全原因關閉指定的類.
; 它接受以逗號分隔的類名的列表.
; 此指令* 不會 *受安全模式開或者關的影響.
disable_classes =

; 語法高亮模式的色彩. 任何在 <span style="color: ???????"> 中可接受的值都可以使用.
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF
;highlight.default = #0000BB
;highlight.html    = #000000

; 如果打開, 即便用戶放棄了的請求也會被執行完成.
; 在執行可能被用戶打斷或者浏覽器超時所中斷的請求時打開此選項.
; ignore_user_abort = On

; 指定PHP使用的實際路徑的緩沖. 對於PHP打開很多文件來處理很多文件操作的系統上,應該增加此值.
; realpath_cache_size=16k

; 對於給定文件或者目錄的緩沖真實路徑信息的緩沖保留秒數. 對於很少修改文件的系統可以考慮增加此值.
; realpath_cache_ttl=120

;
; 其他
;
; 考慮到PHP可能被其所安裝的服務器上暴露的事實(例如. 被web服務器作為頭部信息的簽名).
; 任何情況下這雖然不是安全威脅, 仍有可能暴露在你的服務器上是否正在使用PHP.
expose_php = On


;;;;;;;;;;;;;;;;;;;
; 資源限制 ;
;;;;;;;;;;;;;;;;;;;

; 每個腳本最大執行秒數
max_execution_time = 30
; 每個腳本用來分析請求數據的最大時間
max_input_time = 60
; 最大輸入變量的嵌套級別
;max_input_nesting_level = 64
; 每個腳本能夠使用的最大內存數量 (128MB)
memory_limit = 128M


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 錯誤處理和記錄 ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; 錯誤報告時一個位. 對每一個數值取或可以得到最終的報告級別
; E_ALL             - 所有錯誤和警告 (不包含 E_STRICT)
; E_ERROR           - 致命的運行時錯誤
; E_RECOVERABLE_ERROR  - 幾乎致命的運行時錯誤
; E_WARNING         - 運行時警告 (非致命錯誤)
; E_PARSE           - 編譯時語法錯誤
; E_NOTICE          - 運行時提醒 (這些警告常常由你代碼中的bug導致, 但是也有可能是有意的行為 (例如, 使用一個未初始化的變量並依賴於其會被自動初始化成為一個空字符串的事實)
; E_STRICT          - 運行時提醒, 打開後PHP會給出針對你代碼的最易移植和最好向後兼容性的建議
; E_CORE_ERROR      - PHP初始化啟動時的致命錯誤
; E_CORE_WARNING    - 在PHP初始化時發生的警告 (非致命錯誤)
; E_COMPILE_ERROR   - 致命的編譯時錯誤
; E_COMPILE_WARNING - 編譯時警告 (非致命)
; E_USER_ERROR      - 用戶產生的錯誤信息
; E_USER_WARNING    - 用戶產生的警告信息
; E_USER_NOTICE     - 用戶產生的提示信息
;
;例子:
;
;   - 顯示所有錯誤, 除了提示以及代碼標准警告以外
;
;error_reporting = E_ALL & ~E_NOTICE
;
;   - 顯示所有錯誤,除了提示以外
;
;error_reporting = E_ALL & ~E_NOTICE | E_STRICT
;
;   - 只顯示錯誤
;
;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - 顯示出了提示以及代碼標准警告之外的錯誤
;
error_reporting  =  E_ALL & ~E_NOTICE

; 打印輸出錯誤 (作為輸出的一部分).  對於生產環境的網站來說,
; 強烈建議你關閉此選項, 使用錯誤日志來替代 (詳情參考下面內容). 
; 在一個生產環境下的web站點打開display_errors可能洩漏安全信息給最終用戶, 例如web服務器的文件路徑,你數據庫教程的結構或者其他信息.
;
; display_errors可用的值:
;
; Off        - 不顯示任何錯誤信息
; stderr     - 將錯誤信息輸出到STDERR (只有 CGI/CLI 格式下有效!)
;
;display_errors = "stderr"
;
; stdout (On) - 輸出錯誤信息到STDOUT上
;
display_errors = On

; 即使 display_errors 打開後,PHP啟動序列中發生的錯誤也不會顯示.
; 強烈建議你保持 display_startup_errors 關閉狀態, 除非在排錯
display_startup_errors = Off

; 將錯誤輸入到日志文件 (服務器指定的log,stderr或者error_log (以下指定))
; 和上面提到的一樣, 強烈建議你在生產環境的web站點下使用錯誤日志來代替錯誤顯示.
log_errors = Off

; 設定log_errors的最大長度. 在 error_log 關於源的信息也計算在內.
; 默認是1024, 設置為0可以不限制任何最大長度.
log_errors_max_len = 1024

; 不要記錄重復的信息.必須出現在同樣文件的相同行之中的才被認為是重復信息,除非 ignore_repeated_source 被設為 true.
ignore_repeated_errors = Off

; 當忽略重復消息時忽略消息的來源. 當此設置打開後,不再記錄來自不同文件或者不同行的相同消息.
ignore_repeated_source = Off

; 如果此選項被設置為 Off, 那麼內存洩漏不會被顯示 (不論在stdout還是在日志中).
; 此項僅在debug編譯模式下有效, 並且錯誤報告需要包含 E_WARNING
report_memleaks = On

;report_zend_debug = 0

; 在$php_errormsg中保存最後一次錯誤/警告消息 (邏輯值).
track_errors = Off

; 關閉在錯誤信息中所包含的HTML標簽.
; 注意: 永遠不要再生產環境中使用此特性.
;html_errors = Off

; 如果html_errors 設置為On, 則PHP產生可點擊的錯誤信息,點擊後會跳轉到描述此錯誤或者引起此錯誤的函數具體信息的頁面.
; 你可以從 http://www.php.net/docs.php 下載一份PHP手冊的副本
; 並且將 docref_root指向你放置本地拷貝的以'/'開頭的.
; 你同時必須指定文件文件的包含點的擴展名.
; 注意: 永遠不要再生產環境中使用此特性.
;docref_root = "/phpmanual/"
;docref_ext = .html

; 在輸出的錯誤信息前加上的字符串.
;error_prepend_string = "<font color=#ff0000>"

; 在輸出的錯誤信息之後加上的字符串.
;error_append_string = "</font>"

; 將錯誤記錄到指定文件.
;error_log = filename

; 將錯誤記錄到 syslog (NT系統上的Event Log在Windows 95下不可用).
;error_log = syslog


;;;;;;;;;;;;;;;;;
; 文件處理 ;
;;;;;;;;;;;;;;;;;
;
; 注意 - track_vars 在PHP 4.0.3 中總是打開的

; 在PHP產生的URL中用來分隔參數的符號.
; 默認是 "&".
;arg_separator.output = "&amp;"

; PHP用來將URL分割輸入到變量中的分隔符.
; 默認是 "&".
; 注意: 所有包含在指令內的字符都會被認為是分隔符!
;arg_separator.input = ";&"

; 此指令描述了PHP注冊GET, POST, Cookie, 環境 和 內置變量的順序  (各自使用G, P, C, E 和 S , 一般使用 EGPCS 或 GPC).  注冊使用從左往右的順序, 新的值會覆蓋舊的值.
variables_order = "EGPCS"

; 是否將EGPCS變量注冊成為全局變量.
; 如果你不希望由於用戶數據而導致你腳本的全局變量變得凌亂,你需要關閉此選項
; 這個一般隨著 track_vars 打開 - 在這種情況下你能夠通過$HTTP_*_VARS[]存取所有的GPC變量.
;
; 你應該努力寫好腳本這樣就不必打開register_globals
; 如果代碼不是經過詳細的斟酌,那將變量作為全局使用可能很容易導致潛在的安全漏洞.
register_globals = Off

; 是否注冊老形式的輸入數組, HTTP_GET_VARS 和相關數組
; 如果你不使用他們,建議為了提高性能關閉他們.
register_long_arrays = On

; 此指令讓PHP確認是否申明 argv&argc 變量 (這些變量會包含GET信息).
; 如果你不使用這些變量,為了提升性能應該關閉此選項.
register_argc_argv = On

; 當打開此項, SERVER 和 ENV 變量將在第一次被使用時而不是腳本一開始時創建(運行時)
; 如果這些變量在腳本中沒有被使用過, 打開此項會增加一點性能.
; 為了使此指令有效,PHP指令 register_globals, register_long_arrays,
; 以及 register_argc_argv 必須被關閉.
auto_globals_jit = On

; PHP可以接受的最大的POST數據大小.
post_max_size = 8M

; Magic quotes
;

; 針對GET/POST/Cookie數據打開Magic quotes.
magic_quotes_gpc = On

; 針對實時產生的數據打開Magic quotes, 例如從SQL獲取的數據, 從exec()返回的數據等等.
magic_quotes_runtime = Off

; 使用 Sybase 風格的 magic quotes (使用"來引導'替代').
magic_quotes_sybase = Off

; 在任何PHP文檔之前或之後自動增加文件.
auto_prepend_file =
auto_append_file =

; 和 4.0b4一樣, PHP 總是使用默認在頭 Content-type: 的編碼輸出字符.
; 將其設置為空可以禁用發送字符集.
;
; PHP內建默認為text/html
default_mimetype = "text/html"
;default_charset = "iso-8859-1"

; 總是填充 $HTTP_RAW_POST_DATA 變量.
;always_populate_raw_post_data = On


;;;;;;;;;;;;;;;;;;;;;;;;;
; 路徑和目錄 ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "path1;path2"
;include_path = ".;c:phpincludes"

; PHP頁面的根路徑, 只有非空時有效.
; 如果PHP沒有使用FORCE_REDIRECT來編譯, 如果你將php作為CGI運行在任何web服務器下(除了IIS)的話,你必須設置doc_root
; 針對安全問題查看文檔.  一種替代方案是使用下面的cgi.force_redirect
doc_root =

; PHP使用/~username打開腳本的目錄,非空時才有效.
user_dir =

; 可加載的擴展(模塊)的目錄位置.
extension_dir = "./"

; 是否啟用 dl() 函數.  dl() 函數無法正常的在多線程服務下運行, 例如IIS或者Zeus, 並在在這些服務軟件下會自動禁用.
enable_dl = On

; 在絕大多數web服務器下,cgi.force_redirect 對於提供安全執行PHP作為CGI來說是很有必要的.
; 沒有配置的情況下,PHP會默認打開此項.
; 你可以在這裡關閉此項並且自己承擔風險
; **你可以在IIS安全的關閉此項,事實上,你必須關閉此項.**
; cgi.force_redirect = 1

; 如果 cgi.nph 被打開,就會強制CGI在每個請求時發送Status: 200.
; cgi.nph = 1

; 如果cgi.force_redirect被打開,並且你沒有在Apache或者Netscape(iPlanet) web服務器下運行,
; 你也許需要設置一個環境變量名讓PHP來查找讓其可以獲取後繼續執行. 設置此變量可能引起安全問題, 在設置之前請先了解可能引起的後果.
; cgi.redirect_status_env = ;

; cgi.fix_pathinfo 為CGI提供 *真實* PATH_INFO/PATH_TRANSLATED 支持. 
; PHP的預處理行為是設置 PATH_TRANSLATED 到 SCRIPT_FILENAME, 並且不去猜測 PATH_INFO 是什麼.
; 想獲取關於 PATH_INFO 更多的信息, 查看 cgi 規范. 
; 將此值設置為1會引起PHP CGI修正它的路徑來符合規范.
; 設置為0會引起PHP類似前面的行為. 默認是1. 你應該修正你的腳本來使用 SCRIPT_FILENAME 而不是 PATH_TRANSLATED.
; cgi.fix_pathinfo=0

; 在IIS下的FastCGI (在基於 WINNT 的操作系統下) 支持莫讓呼叫客戶端的安全令牌的能力.
; 這使得IIS能夠定義其下運行的安全上下文.
; 在Apache下的mod_fastcgi 目前不支持此特性 (03/17/2002)
; 如果運行在IIS下設置為1. 默認是0.
; fastcgi.impersonate = 1;

; 關閉通過 FastCGI 連接的日志
; fastcgi.logging = 0

; cgi.rfc2616_headers 配置選項告知 PHP 當發送HTTP響應代碼時使用什麼類型的頭
; 如果設置為0,PHP發送被Apache支持的 Status: 頭信息.
; 當設置為1, PHP會發送 RFC2616 兼容的頭信息.
; 默認為0.
; cgi.rfc2616_headers = 0


;;;;;;;;;;;;;;;;
; 文件上傳 ;
;;;;;;;;;;;;;;;;

; 是否允許HTTP文件上傳.
file_uploads = On

; 對於HTTP上傳文件的臨時文件目錄 (如果沒有指定則會使用系統默認).
;upload_tmp_dir =

; 允許上傳的最大文件大小.
upload_max_filesize = 2M


;;;;;;;;;;;;;;;;;;
; Fopen 包裝 ;
;;;;;;;;;;;;;;;;;;

; 是否允許將URL作為文件 (例如 http:// 或者 ftp://) .
allow_url_fopen = On

; 是否允許 include/require 將URL作為文件 (例如 http:// 或者 ftp://) .
allow_url_include = Off

; 定義匿名ftp密碼 (你的電子郵件地址)
;from="[email protected]"

; 定義 User-Agent 字符串
; user_agent="PHP"

; 定義基於流的socket接口的超時時間 (秒)
default_socket_timeout = 60

; 如果你的腳本必須處理從 Macintosh 系統來的文件,
; 或者你運行在一台Mac並且需要從unix或者win32系統上處理文件,
; 設置此標志會引起PHP自動檢測這些文件的EOL字符,這樣fgets() 和 file() 就可以不用管文件的來源而直接處理了.
; auto_detect_line_endings = Off


;;;;;;;;;;;;;;;;;;;;;;
; 動態擴展 ;
;;;;;;;;;;;;;;;;;;;;;;
;
; 如果你希望擴展自動加載, 使用下列語法:
;
;   extension=modulename.extension
;
; 例如,在Windows系統上:
;
;   extension=msql.dll
;
; ... 或者在 UNIX 下:
;
;   extension=msql.so
;
; 注意: 這裡應該只是模塊的名字;
; 這裡不需要模塊的目錄信息.
; 使用上面的 extension_dir 指令來指定擴展的位置.


; Windows Extensions
; 注意:已經內建了ODBC支持,所以不需要針對ODBC的dll.
; 注意:許多DLL文件位於 extensions/ (PHP 4) 或者 ext/ (PHP 5)目錄中,和分割的PECL DLL下載在一起 (PHP 5).
; 確定設置了正確的 extension_dir 指令.

;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_msql.dll
;extension=php_mssql.dll
;extension=php_mysql.dll
;extension=php_mysqli.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll

;;;;;;;;;;;;;;;;;;;
; 模塊設置 ;
;;;;;;;;;;;;;;;;;;;

[Date]
; 定義date函數使用的默認時區
;date.timezone =

;date.default_latitude = 31.7667
;date.default_longitude = 35.2333

;date.sunrise_zenith = 90.583333
;date.sunset_zenith = 90.583333

[filter]
;filter.default = unsafe_raw
;filter.default_flags =

[iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1

[sqlite]
;sqlite.assoc_case = 0

[xmlrpc]
;xmlrpc_error_number = 0
;xmlrpc_errors = 0

[Pcre]
;PCRE 庫反響追蹤限制.
;pcre.backtrack_limit=100000

;PCRE 庫遞歸限制.
;請注意如果你設置此項到一個很高的值, 你可能耗盡所有的可用的進程堆並且最終弄宕PHP(由於到達了操作系統強制的堆大小的限制).
;pcre.recursion_limit=100000

[Syslog]
; 是否定義不同的syslog變量 (例如. $LOG_PID,
; $LOG_CRON, 等等.).  關閉此選項對性能有益.
; 在運行時, 你可以調用 define_syslog_variables() 函數來定義這些變量.
define_syslog_variables  = Off

[mail function]
; 針對Win32.
SMTP = localhost
smtp_port = 25

; 針對Win32.
;sendmail_from = [email protected]

; 針對Unix.  可以支持參數 (默認: "sendmail -t -i").
;sendmail_path =

; 強制額外的指定的參數被作為擴展參數傳送給sendmail執行文件.
; 這些參數總是替代mail()函數的第五個參數值, 甚至是在安全模式內.
;mail.force_extra_parameters =

[SQL]
sql.safe_mode = Off

[ODBC]
;odbc.default_db    =  目前無效
;odbc.default_user  =  目前無效
;odbc.default_pw    =  目前無效

; 允許或阻止持久連接.
odbc.allow_persistent = On

; 在重用前檢查連接是否可用.
odbc.check_persistent = On

; 持久連接的最大數目.  -1 意味著沒有限制.
odbc.max_persistent = -1

; 最大連接數 (持久 + 非持久).  -1 意味著沒有限制.
odbc.max_links = -1

; 長字段處理.  返回變量的字節數.  0 意味著略過.
odbc.defaultlrl = 4096

; 二進制數據處理. 0 意味著略過, 1按照實際返回, 2 轉換到字符.
; 查看 odbc_binmode 和 odbc_longreadlen 的文檔來獲取針對 uodbc.defaultlrl 和 uodbc.defaultbinmode的解釋
odbc.defaultbinmode = 1

[MySQL]
; 允許或阻止持久連接.
mysql.allow_persistent = On

; 持久連接的最大數目.  -1 意味著沒有限制.
mysql.max_persistent = -1

; 最大連接數 (持久 + 非持久).  -1 意味著沒有限制.
mysql.max_links = -1

; mysql_connect()默認的端口號.  如果沒有設置, mysql_connect() 會使用 $MYSQL_TCP_PORT
; 或者 位於/etc/services的 mysql-tcp 入口或者編譯時定義的MYSQL_PORT 值(按照此順序查找).
; Win32 只會查找MYSQL_PORT值.
mysql.default_port =

; 對於本地MySQL連接的默認socket名稱. 如果為空, 則使用MySQL內建默認值.
mysql.default_socket =

; mysql_connect() 的默認host值(在安全模式中不會生效).
mysql.default_host =

; mysql_connect() 的默認user值(在安全模式中不會生效).
mysql.default_user =

; mysql_connect() 的默認password值(在安全模式中不會生效).
; 注意在此文件中保存密碼一般來說是 *糟糕* 的主義.
; *任何* 使用PHP的用戶可以執行 'echo get_cfg_var("mysql.default_password")
; 並且獲取到此密碼! 而且理所當然, 任何有對此文件讀權限的用戶都可以獲取到此密碼.
mysql.default_password =

; 連接超時的最大時間 (秒) , -1 意味著沒有限制.
mysql.connect_timeout = 60

; 追蹤模式. 當 trace_mode 被打開 (=On), table/index 掃描的警告和SQL錯誤會被顯示出來.
mysql.trace_mode = Off

[MySQLi]

; 最大連接數.  -1 意味著沒有限制.
mysqli.max_links = -1

; mysqli_connect()默認的端口號.  如果沒有設置, mysql_connect() 會使用 $MYSQL_TCP_PORT
; 或者 位於/etc/services的 mysql-tcp 入口或者編譯時定義的MYSQL_PORT 值(按照此順序查找).
; Win32 只會查找MYSQL_PORT值.
mysqli.default_port = 3306

; 對於本地MySQL連接的默認socket名稱. 如果為空, 則使用MySQL內建默認值.
mysqli.default_socket =

; mysqli_connect() 的默認host值(在安全模式中不會生效).
mysqli.default_host =

; mysqli_connect() 的默認user值(在安全模式中不會生效).
mysqli.default_user =

; mysqli_connect() 的默認password值(在安全模式中不會生效).
; 注意在此文件中保存密碼一般來說是 *糟糕* 的主義.
; *任何* 使用PHP的用戶可以執行 'echo get_cfg_var("mysqli.default_password")
; 並且獲取到此密碼! 而且理所當然, 任何有對此文件讀權限的用戶都可以獲取到此密碼.
mysqli.default_pw =

; 允許或阻止持久連接.
mysqli.reconnect = Off

[mSQL]
; 允許或阻止持久連接.
msql.allow_persistent = On

; 持久連接的最大數目.  -1 意味著沒有限制.
msql.max_persistent = -1

; 最大連接數 (持久 + 非持久).  -1 意味著沒有限制.
msql.max_links = -1

[OCI8]
; 打開使用外部認證的授權連接 (OCI_SYSOPER, OCI_SYSDBA)
;oci8.privileged_connect = Off

; 連接: 每個進程的持久OCI8連接的最大數, -1 意味著沒有限制.
;oci8.max_persistent = -1

; 連接: 一個進程允許保持一個空閒持久連接的最大秒數.
; -1意味著空閒持久連接會永遠被保持.
;oci8.persistent_timeout = -1

; 連接: 當oci_pconnect() 檢測一個連接是否有效時每次發起ping之間必須通過的秒數.
; 當設置為0後, 每個oci_pconnect() 會發起一個ping. Using -1 完全關閉ping.
;oci8.ping_interval = 60

; 調優: 此選項打開聲明緩沖(statement cache), 並且指定緩沖多少聲明. 使用0關閉聲明緩沖.
;oci8.statement_cache_size = 20

; 調優: 打開聲明預取(statement prefetch) 並且設置自動在聲明執行後被取到行的數量.
;oci8.default_prefetch = 10

; 兼容性: 設置為On 意味著 oci_close() 不會關閉 oci_connect() 和 oci_new_connect() 的連接.
;oci8.old_oci_close_semantics = Off

[PostgresSQL]
; 允許或阻止持久連接.
pgsql.allow_persistent = On

; 總是在 pg_pconnect() 時檢測斷開的持久連接.
; 自動重置特性會引起一點開銷.
pgsql.auto_reset_persistent = Off

; 持久連接的最大數目.  -1 意味著沒有限制.
pgsql.max_persistent = -1

; 最大連接數 (持久 + 非持久).  -1 意味著沒有限制.
pgsql.max_links = -1

; 是否忽略 PostgreSQL 後端通告消息.
; 通告消息記錄會需要一點開銷.
pgsql.ignore_notice = 0

; 是否記錄 PostgreSQL 後端通告消息.
; 除非 pgsql.ignore_notice=0, 否則模塊無法記錄通告消息
pgsql.log_notice = 0

[Sybase]
; 允許或阻止持久連接.
sybase.allow_persistent = On

; 持久連接的最大數目.  -1 意味著沒有限制.
sybase.max_persistent = -1

; 最大連接數 (持久 + 非持久).  -1 意味著沒有限制.
sybase.max_links = -1

;sybase.interface_file = "/usr/sybase/interfaces"

; 顯示出的消息最小嚴重程度.
sybase.min_error_severity = 10

; 顯示出的消息最小嚴重程度.
sybase.min_message_severity = 10

; 兼容老版本PHP 3.0的模式.
; 如果設為 on, 會引起 PHP 自動綁定結果記錄的類型到Sybase的類型,而不是將他們全部按照字符串處理.
; 此兼容模式可能不會永久存在, 所以最好嘗試在你代碼中需要的地方作出必要的修改, 然後關閉此選項.
sybase.compatability_mode = Off

[Sybase-CT]
; 允許或阻止持久連接.
sybct.allow_persistent = On

; 持久連接的最大數目.  -1 意味著沒有限制.
sybct.max_persistent = -1

; 最大連接數 (持久 + 非持久).  -1 意味著沒有限制.
sybct.max_links = -1

; 顯示出的錯誤最小嚴重程度.
sybct.min_server_severity = 10

; 顯示出的消息最小嚴重程度.
sybct.min_client_severity = 10

[bcmath]
; 所有bcmath函數的小數位數
bcmath.scale = 0

[browscap]
;browscap = extra/browscap.ini

[Informix]
; 對於 ifx_connect() 的默認host (不會在安全模式被應用).
ifx.default_host =

; 對於 ifx_connect() 的默認user (不會在安全模式被應用).
ifx.default_user =

; 對於 ifx_connect() 的默認password (不會在安全模式被應用).
ifx.default_password =

; 允許或阻止持久連接.
ifx.allow_persistent = On

; 持久連接的最大數目.  -1 意味著沒有限制.
ifx.max_persistent = -1

; 最大連接數 (持久 + 非持久).  -1 意味著沒有限制.
ifx.max_links = -1

; 如果設為 on, select 聲明返回 text 段的內容而不是它的id.
ifx.textasvarchar = 0

; 如果設為 on, select 聲明返回 byte 段的內容而不是它的id.
ifx.byteasvarchar = 0

; 固定長度字符列的尾部空格會被截去.  可能對 Informix SE 用戶有幫助.
ifx.charasvarchar = 0

; 如果設為 on, text 和 byte 段會被dump到一個文件而不是在內存中保留它們.
ifx.blobinfile = 0

; NULL會被作為一個空字符串返回, 除非被設為1. 如果設為1, NULL會被作為字符串'NULL'返回.
ifx.nullformat = 0

[Session]
; 用來存儲/獲取數據的處理方法.
session.save_handler = files

; 傳送到save_handler的參數.  在使用文件的情況下, 這裡是數據文件被保存的路徑.
; 注意: Windows 用戶必須改變此值來使用PHP的會話函數.
;
; 和在 4.0.1一樣, 你可以定義如下路徑:
;
;     session.save_path = "N;/path"
;
; 這裡的 N 是一個整數.  使用此參數會在目錄內建立一個N層深度的子目錄用來保存session文件,
; 而不是將所有session文件保存在同一個/path目錄內. 
; 這對你或當你的操作系統在一個目錄內保存太多文件時出現問題很有幫助.
; 並且對於處理大量session的服務器提供更高的效率.
;
; 注意 1: PHP不會自動創建目錄結構. 你可以使用在ext/session目錄內的腳本來創建目錄結構.
; 注意 2: 如果你選擇使用子目錄來保存session,請檢查下面關於垃圾回收的配置段
;
; 文件存儲模塊默認使用600模式來創建文件,在使用中你可以改變此選項
;
;     session.save_path = "N;MODE;/path"
;
; 這裡的MODE由8進制來表示. 注意這裡不會覆蓋進程的umask.
;session.save_path = "/tmp"

; 是否使用cookie.
session.use_cookies = 1

;session.cookie_secure =

; 這個選項允許管理員去保護那些在URL中傳送session id的用戶免於被攻擊
; 默認是 0.
; session.use_only_cookies = 1

; session的名稱 (作為cookie名稱來使用).
session.name = PHPSESSID

; 在請求開始的時候初始化session.
session.auto_start = 0

; cookie的生存秒數,或者如果為0就直到浏覽器重啟.
session.cookie_lifetime = 0

; cookie有效的路徑.
session.cookie_path = /

; cookie有效的域名.
session.cookie_domain =

; 是否將httpOnly標志增加到cookie上, 增加後則cookie無法被浏覽器的腳本語言(例如JavaScript)存取.
session.cookie_httponly =

; 用於序列化數據的處理器. php是標准的PHP序列化器.
session.serialize_handler = php

; 定義'垃圾回收'進程在每次session初始化時開始的比例.
; 比例由 gc_probability/gc_divisor來得出,
; 例如. 1/100 意味著在每次請求時有1%的機會啟動'垃圾回收'進程.

session.gc_probability = 1
session.gc_divisor     = 100

; 在經過以下秒數之後, 存儲的數據會被認為是'垃圾'並且被垃圾回收進程清理掉.
session.gc_maxlifetime = 1440

; 注意: 如果你使用子目錄選項來保存session文件
;       (查看在上面的session.save_path), 那麼垃圾回收就 *不會* 自動發生.
;       你需要通過一個shell腳本,cron或者其他方法來自行處理垃圾回收.
;       例如, 下面的腳本相當於將session.gc_maxlifetime設置為 1440 (1440 秒 = 24 分鐘):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 和更早版本有一個未公開的 特性/bug , 此特性允許你在全局初始化一個session變量,即便 register_globals 已經被關閉.
; 如果此特性被使用,PHP 4.3 和更早版本會警告你.
; 你可以關閉此特性並且隔離此警告. 這時候,如果打開bug_compat_42,那此警告只是被顯示出來.

session.bug_compat_42 = 1
session.bug_compat_warn = 1

; 檢查HTTP Referer來防止帶有id的外部URL.
; HTTP_REFERER 必須包含從session來的這個字段才會被認為是合法的.
session.referer_check =

; 從此文件讀取多少字節.
session.entropy_length = 0

; 在這裡指定創建session id.
session.entropy_file =

;session.entropy_length = 16

;session.entropy_file = /dev/urandom

; 設置為 {nocache,private,public,} 來決定HTTP緩沖的類型
; 留空則防止發送 anti-caching 頭.
session.cache_limiter = nocache

; 文檔在n分鐘之後過期.
session.cache_expire = 180

; trans sid 支持默認關閉.
; 使用 trans sid 可能讓你的用戶承擔安全風險.
; 使用此項必須小心.
; - 用戶也許通過email/irc/其他途徑發送包含有效的session ID的URL給其他人.
; - 包含有效session ID的URL可能被存放在容易被公共存取的電腦上.
; - 用戶可能通過在浏覽器歷史記錄或者收藏夾裡面的包含相同的session ID的URL來訪問你的站點.
session.use_trans_sid = 0

; 選擇hash方法
; 0: MD5   (128 bits)
; 1: SHA-1 (160 bits)
session.hash_function = 0

; 當轉換二進制hash數據到可讀形式時,每個字符保存時有幾位.
;
; 4 bits: 0-9, a-f
; 5 bits: 0-9, a-v
; 6 bits: 0-9, a-z, A-Z, "-", ","
session.hash_bits_per_character = 4

; URL rewriter會在已經定義的一組HTML標簽內查找URL.
; form/fieldset 是特殊字符; 如果你在這裡包含他們, rewriter會增加一個包含信息的隱藏<input>字段否則就是在URL中附加信息.
; 如果你你想遵守XHTML, 刪除form的入口.
; 注意 所有合法的入口都需要一個"="符號, 甚至是沒有任何值的.
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

[MSSQL]
; 允許或阻止持久連接.
mssql.allow_persistent = On

; 持久連接的最大數目.  -1 意味著沒有限制.
mssql.max_persistent = -1

; 最大連接數 (持久 + 非持久).  -1 意味著沒有限制.
mssql.max_links = -1

; 顯示出的錯誤最小嚴重程度.
mssql.min_error_severity = 10

; 顯示出的消息最小嚴重程度.
mssql.min_message_severity = 10

; PHP 3.0 老版本的兼容模式.
mssql.compatability_mode = Off

; 連接超時
;mssql.connect_timeout = 5

; 查詢超時
;mssql.timeout = 60

; 有效范圍 0 - 2147483647.  默認 = 4096.
;mssql.textlimit = 4096

; 有效范圍 0 - 2147483647.  默認 = 4096.
;mssql.textsize = 4096

; 每批記錄的數量限制.  0 = 所有記錄在一批內.
;mssql.batchsize = 0

; 指定 datetime 和 datetim4 欄如何返回
; On => 返回數據轉換到SQL服務器設置的格式
; Off => 使用 YYYY-MM-DD hh:mm:ss 返回
;mssql.datetimeconvert = On

; 當連接到服務器時使用NT驗證
mssql.secure_connection = Off

; 指定最大進程數. -1 = 庫默認
; msdlib 默認 25
; FreeTDS 默認 4096
;mssql.max_procs = -1

; 指定客戶端字符集.
; 如果為空或者沒有指定,客戶端字符集將會使用freetds.conf的配置
; 只有和FreeTDS編譯時會被使用
;mssql.charset = "ISO-8859-1"

[Assertion]
; 斷言(expr); 默認打開.
;assert.active = On

; 對於每個失敗斷言發起一個PHP警告.
;assert.warning = On

; 默認不要保釋.
;assert.bail = Off

; 如果斷言失敗則調用用戶自定義函數.
;assert.callback = 0

; 使用當前 error_reporting() Eval一個表達式.  如果你想要在eval()附近error_reporting(0) ,那設置為true.
;assert.quiet_eval = 0

[COM]
; 包含GUID,IID或者TypeLibs的文件的文件名的文件的路徑
;com.typelib_file =
; 允許 Distributed-COM 調用
;com.allow_dcom = true
; 自動注冊位於com_load()函數的組件typlib的常量
;com.autoregister_typelib = true
; 注冊常量大小寫敏感
;com.autoregister_casesensitive = false
; 當有重復常量注冊時顯示警告
;com.autoregister_verbose = true

[mbstring]
; 內部字符表示的語言.
;mbstring.language = Japanese

; 內部/腳本編碼.
; 部分編碼無法作為內部編碼使用.
; (例如. SJIS, BIG5, ISO-2022-*)
;mbstring.internal_encoding = EUC-JP

; http 輸入編碼.
;mbstring.http_input = auto

; http 輸出編碼. mb_output_handler 必須作為函數被注冊為輸出緩沖
;mbstring.http_output = SJIS

; 按照mbstring.internal_encoding的設置打開自動編碼轉換
; 當設置為On時,輸入字符被轉換為內部編碼.
; 注意: 不要針對可移植庫/應用使用自動編碼轉換.
;mbstring.encoding_translation = Off

; 自動編碼檢測序列
; 自動意味著
;mbstring.detect_order = auto

; 當無法將字符從一種轉換到另一種時使用的置換符號
;mbstring.substitute_character = none;

; 使用mbstring函數 覆蓋(替換) 單字節函數.
; mail(), ereg(), 等等都會被 mb_send_mail(), mb_ereg() 等等覆蓋,
; 可以取的值是 0,1,2,4 或者他們的組合.
; 例如, 7 就是覆蓋所有函數.
; 0: 不覆蓋
; 1: 覆蓋 mail() 函數
; 2: 覆蓋 str*() 函數
; 4: 覆蓋 ereg*() 函數
;mbstring.func_overload = 0

[FrontBase]
;fbsql.allow_persistent = On
;fbsql.autocommit = On
;fbsql.show_timestamp_decimals = Off
;fbsql.default_database =
;fbsql.default_database_password =
;fbsql.default_host =
;fbsql.default_password =
;fbsql.default_user = "_SYSTEM"
;fbsql.generate_warnings = Off
;fbsql.max_connections = 128
;fbsql.max_links = 128
;fbsql.max_persistent = -1
;fbsql.max_results = 128

[gd]
; 告知jpeg解碼器libjpeg警告並且嘗試創建一個gd圖像. 此警告會被作為一個通告顯示
; 默認為關閉
;gd.jpeg_ignore_warning = 0

[exif]
; Exif UNICODE 用戶注釋會被作為UCS-2BE/UCS-2LE 和 JIS 來進行 JIS處理.
; 當 mbstring.internal_encoding 設置為空,如果有 mbstring 支持,則會自動轉換到給出的對應編碼設置的編碼.
; 對於解碼設置你可以在motorola和intel字符序列上進行選擇. 解碼設置不能設置為空.
;exif.encode_unicode = ISO-8859-15
;exif.decode_unicode_motorola = UCS-2BE
;exif.decode_unicode_intel    = UCS-2LE
;exif.encode_jis =
;exif.decode_jis_motorola = JIS
;exif.decode_jis_intel    = JIS

[Tidy]
; 當調用tidy時,默認指向tidy配置文件的路徑
;tidy.default_config = /usr/local/lib/php/default.tcfg

; tidy是否自動清除和修復輸出?
; 警告: 不要在你產生非html內容時使用此項,例如產生動態圖片時
tidy.clean_output = Off

[soap]
; 打開或關閉WSDL緩沖特性.
soap.wsdl_cache_enabled=1
; 設置SOAP擴展存放緩沖文件的目錄.
soap.wsdl_cache_dir="/tmp"
; (存活時間) 設置當緩沖文件被用來替換原有緩沖文件的秒數.
soap.wsdl_cache_ttl=86400

; Local Variables:
; tab-width: 4
; End:

 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved