PHP.ini Chinese explanation

Source: Internet
Author: User
Tags empty error handling eval connect mssql session id mysql zend
Chinese

PHP.ini Chinese explanation


Publish time: 02-11-26 author or Source: Leftstar
[PHP]
; PHP is still an evolving tool, and its functionality is constantly being pruned
; and PHP.ini's setting changes can reflect quite a change,
; Before using the new PHP version, it would be helpful to look at the php.ini.
;;;;;;;;;;;;;;;;;;;
; about this document;
;;;;;;;;;;;;;;;;;;;
; This file controls many aspects of PHP's view. In order for PHP to read this file, it must be named
; ' PHP.ini '. PHP will locate the file in turn: current working directory; environment variable PHPRC
; The specified path, the path specified at compile time.
; Under Windows, the path at compile time is the Windows installation directory.
; In command line mode, the php.ini lookup path can be replaced with the-c parameter.
; The syntax for the file is very simple. Blank characters and semicolons '; ' The start line is simply ignored (as you might
; guessed). Chapter headings (For example: [Foo]) are also simply ignored, even though they may
; Have some kind of meaning.
;
; Indicates that the following syntax is specified:
; Indicates an identifier = value
; directive = value
; Indicates that the identifier is * case sensitive *-Foo=bar is different from foo = bar.
;
; The value can be a string, a number, a PHP constant (such as: E_all or M_PI), and the INI constant
; One (on, off, True, False, Yes, No and None), or an expression
; (such as: E_all & ~e_notice), or a string enclosed in quotes ("foo").
;
; INI file is limited to bitwise operators and parentheses.
; | Bitwise OR
; & Bitwise AND
; ~ Bitwise NOT
; ! Boolean not
;
; Boolean flags can be placed in the open state with 1, on, True or Yes.
; They can be placed on a state that has a value of 0, off, False, or No.
;
; An empty string can be represented by an equal sign without writing anything, or with the None keyword:
;
; Foo =; Place Foo as an empty string
; foo = none; Place Foo as an empty string
; Foo = "None"; Place Foo As String ' None '
;
; If you use constants in your value settings, these constants belong to the extended libraries that are dynamically transferred (not PHP extensions, or
; Zend extension), you can only transfer these extended rows * and use these constants.
;
; All the values set in the Php.ini-dist file are the same as the built-in defaults (which is to say that if the php.ini
; is not used or you have deleted these lines, the default value is the same.
;;;;;;;;;;;;;;;;;;;;
; Language Options;
;;;;;;;;;;;;;;;;;;;;
Engine = On
; Make PHP scripting language engine (PHP scripting language Engine) valid under Apache.
Short_open_tag = On
; Let's do it. Identification (this simple representation). Only <?php and <script> tags will be identified.
Asp_tags = Off
; Allow Asp-style <%%> tags
Precision = 14
; Number of significant digits when the number of floating-point types is displayed
Y2k_compliance = Off
; Whether to open the 2000 adaptation (may cause problems in a Y2K-adapted browser)
Output_buffering = Off
; Output caching allows you to even send headers (headers, including cookies) after the body content is exported.
; The cost is that the output layer slows down a little bit. You can use the output cache to open the output cache at run time,
; or set the indication here to on so that the output cache for all files is open.
Output_handler =; You can redirect all the output of your script to a function,
; Doing so may be useful for processing or logging it.
; For example, if you set this output_handler as "Ob_gzhandler",
; The output is transparently compressed for browsers that support gzip or deflate encoding.
; Set an output processor to automatically open the output buffer.
Implicit_flush = Off
; Force flush (refresh) Let PHP tell the output layer to automatically refresh its own data after each output block.
; This is equivalent to calling the flush () function after each print () or echo () call and each HTML block.
; Opening this setting can cause serious run-time conflicts and is recommended for opening only during Debug.
Allow_call_time_pass_reference = On
; Whether to allow arguments to be passed by reference when forcing a function call. This approach was protested,
; and may no longer be supported in future versions of Php/zend.
; The method that is encouraged to specify which parameters are passed by reference is in the function declaration.
; You are encouraged to try to close this option and confirm that your script is still working to ensure that in future versions of the language
; They can still work. (You'll get a warning each time you use this feature, and the parameters will be by value instead of by reference
; Delivery).
; Safe Mode
Safe_mode = Off
Safe_mode_exec_dir =
Safe_mode_allowed_env_vars = Php_
; ? Setting Certain environment variables
; ? May is a potential security breach.
; The indication contains a comma-separated list of prefixes. In Safe mode, users can only replace
; The value of the environment variable that starts with the prefix listed here.
; By default, users will only be able to set environment variables that start with PHP_, (such as: Php_foo=bar).
; Note: If this indicator is empty, PHP will let the user change any environment variable!
Safe_mode_protected_env_vars = Ld_library_path
; This instruction contains a comma-delimited list of environment variables that the end user will not be able to change with putenv ().
; These variables are even protected when the Safe_mode_allowed_env_vars is set to allow.
Disable_functions =
; This instruction allows you to invalidate a particular function for security reasons.
; It accepts a comma-delimited list of function names.
; This indication * is not affected by whether the Safe mode is open.
; Syntax highlighting mode of color.
; As long as you can be <font color=??? > Accept things to work.
highlight.string = #DD0000
Highlight.comment = #FF8000
Highlight.keyword = #007700
highlight.bg = #FFFFFF
Highlight.default = #0000BB
highlight.html = #000000
; Misc Miscellaneous
expose_php = Off
; Decide whether PHP will indicate the fact that it's installed on the server (for example: add it to the-php-Web service
; sent on the signal).
; (My personal opinion, turn this off when there's a power-by header.)
; It doesn't have a security threat, but it makes it possible to check if PHP is installed on your server.
;;;;;;;;;;;;;;;;;;;
; Resource Limits;
;;;;;;;;;;;;;;;;;;;
Max_execution_time = 30; Maximum execution time for each script, in seconds
Memory_limit = 8388608; The maximum amount of memory a script can use (here is 8MB)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging;
; Error control and registration;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error reporting is bitwise. or add up the numbers to get the error reporting level you want.
; E_all-All errors and warnings
; E_error-Fatal Run-time Error
; E_warning-Runtime Warning (non-fatal error)
; E_parse-Compile-time parse error
; E_notice-Run-time Reminders (these are often caused by bugs in your code,
; it could be a deliberate act. (such as: Automatically initialize an uninitialized variable to a
; the fact of an empty string uses an uninitialized variable)
; E_core_error-fatal error occurred during initialization of PHP
; E_core_warning-Warning (non-fatal error) during initialization during PHP startup
; E_compile_error-Compile-time fatal error
; 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 reminder message
; Example:
; error_reporting = E_all & ~e_notice; Show all errors except reminders
; error_reporting = e_compile_error| e_error| E_core_error; Show only Errors
error_reporting = E_all & ~e_notice; Show all errors except reminders
Display_errors = on; Displays an error message (as part of the output)
; In the final release of the Web site, it is strongly recommended that you turn off this feature and use
; Error log instead (see below).
; Continue to make display_errors available on the final published Web site
; Expose some security-related information, such as the file path on your Web service,
; Your database planning or other information.
Display_startup_errors = off; Even when Display_erroes is turned on, it happens in the steps of starting PHP
; Errors will not be displayed.
; It is strongly recommended that the display_startup_errors be kept closed,
; Except in the process of error modification.
Log_errors = off; Error logging in log file (server-specified log, stderr standard error output, or Error_log (below))
; As explained above, it is strongly recommended that you log errors in the final published Web site
; Instead of direct error output.
Track_errors = off; Save last Error/warning message in variable $php _errormsg (Boolean)
; error_prepend_string = "<font color=ff0000>"; The string to output before the error message
; error_append_string = "</font>"; The string to output after the error message
; error_log = filename; Logging error log in specified file
; error_log = syslog; Logging error log in System log syslog (event log under NT, invalid under Windows 95)
warn_plus_overloading = off; Warning when ' + ' is used for string
;;;;;;;;;;;;;;;;;
; Data handling;
;;;;;;;;;;;;;;;;;
Variables_order = "Egpcs"; This instruction describes the PHP record
; Get, POST, Cookie, environment and built-in the order of these variables.
; (G, P, C, E & S, usually referenced in the form of Egpcs or GPC).
; Record from left to right and the new value replaces the old value.
Register_globals = on; Whether to register these egpcs variables as global variables.
; You might want to close the user's data if you don't want it to clutter up the global scope.
; It's more meaningful to connect with track_vars-so you can pass
; $HTTP _*_vars[] Array to access all GPC variables.
REGISTER_ARGC_ARGV = on; This instruction tells PHP whether to declare argv and ARGC variables
; (Note: Here argv is an array, ARGC is a variable number)
; (which contains data from the Get method).
; If you don't want to use these variables, you should turn it off to improve performance.
Track_vars = on; Make the $http_*_vars[] array valid, here * in use
; ENV, POST, GET, COOKIE or server replacement
Post_max_size = 8M; The maximum size of post data that PHP will accept.
Gpc_order = "GPC"; The instruction was objected to. Replace with Variables_order.
; Magic Quotes
MAGIC_QUOTES_GPC = on; Using magic references in the input Get/post/cookie data
; (In this way, hehe, the so-called magic quotes should mean to use the escape alphanumeric in the reference control characters, such as \ ' ... )
Magic_quotes_runtime= off; Use magic references to data generated at run time,
; For example: data obtained with SQL queries, data obtained using the EXEC () function, and so on
Magic_quotes_sybase = off; Using Sybase-style magic quotes (with ' prolapse ' instead of \ ')
; Automatically add files before and after PHP documents
Auto_prepend_file =
Auto_append_file =
; Like 4.04b4, PHP always prints the encoding of a character in the "Content-type:" header by default.
; Invalidates the output character set, as long as it is set to null.
; PHP's built-in default value is Text/html
Default_mimetype = "Text/html"
;d efault_charset = "Iso-8859-1"
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and directories;
;;;;;;;;;;;;;;;;;;;;;;;;;
include_path =; Include path settings, UNIX: "/path1:/path2" Windows: "\path1;\path2"
Doc_root =; The root path of the PHP page, valid only when not empty
User_dir =; Tell PHP which directory to go to when you open the script using/~username, which is valid only when not empty
; upload_tmp_dir =; A temporary directory that holds files uploaded with the HTTP protocol (using system defaults when unspecified)
Upload_max_filesize = 2097152; File upload is limited to 2 Meg by default
Extension_dir = c:\php\; A directory that holds loadable Extensions (modules)
ENABLE_DL = on; Whether the DL () is valid.
; DL () function on multi-threaded server * not working well,
; For example, IIS or Zeus, and on it, defaults to prohibit
;;;;;;;;;;;;;;;;
; File uploads;
;;;;;;;;;;;;;;;;
File_uploads = on; Whether to allow HTTP way file uploads
; upload_tmp_dir =; Temporary directory for files used for HTTP uploads (unspecified to use system defaults)
Upload_max_filesize = 2M; Maximum allowable size of uploaded files
; Fopen wrappers;
;;;;;;;;;;;;;;;;;;
Allow_url_fopen = on; Do you want to allow URLs to be treated as http:.. or the file as ftp: ...
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic expansion;
; Dynamic Extensions;
;;;;;;;;;;;;;;;;;;;;;;
; If you want an extension library to load automatically, use the following syntax:
; Extension=modulename.extension
; For example, on Windows,
; Extension=msql.dll
; or under UNIX,
; Extension=msql.so
; Note that this should only be the name of the module and does not require directory information to be placed inside it.
; Use the above Extension_dir to indicate the location of the specified extension library.
; Windows Extensions
; Extension=php_nsmail.dll
Extension=php_calendar.dll
; Extension=php_dbase.dll
; Extension=php_filepro.dll
Extension=php_gd.dll
; Extension=php_dbm.dll
; Extension=php_mssql.dll
; Extension=php_zlib.dll
; Extension=php_filepro.dll
; Extension=php_imap4r2.dll
; Extension=php_ldap.dll
; Extension=php_crypt.dll
; Extension=php_msql2.dll
; Extension=php_odbc.dll
; Note that MySQL support is now built in and therefore does not need to use its DLL
;;;;;;;;;;;;;;;;;;;
; module setting;
; Module Settings;
;;;;;;;;;;;;;;;;;;;
[Syslog]
Define_syslog_variables = off; Whether to define various system log variables
; such as: $LOG _pid, $LOG _cron, and so on.
; Turning it off is a good idea to improve efficiency.
; At run time, you can call the function define_syslog_variables () to define these variables
[Mail Function]
SMTP = localhost; only for Win32 systems
Sendmail_from = me@localhost.com; for Win32 systems only
; sendmail_path =; only for UNIX, but also for parameters (the default is ' sendmail-t-i ')
[Debugger]
Debugger.host = localhost
Debugger.port = 7869
debugger.enabled = False
[Logging]
; These configurations indicate the logging mechanism used for the sample.
; Look at examples/readme.logging to get more explanations.
; Logging.method = db
; logging.directory =/path/to/log/directory
[Java]
; Java.class.path =. \php_java.jar
; java.home = C:\jdk
; java.library = C:\jdk\jre\bin\hotspot\jvm.dll
; Java.library.path =. \
[SQL]
Sql.safe_mode = Off
[ODBC]
; uodbc.default_db = Not yet implemented
; uodbc.default_user = Not yet implemented
; UODBC.DEFAULT_PW = Not yet implemented
Uodbc.allow_persistent = on; Allow or disable persistent connections
Uodbc.check_persistent = on; Check if the connection is still available before reusing
Uodbc.max_persistent =-1; Maximum number of persistent connections.-1 stands for No Limit
Uodbc.max_links =-1; Maximum number of connections (persistent and non-persistent).-1 for unrestricted
UODBC.DEFAULTLRL = 4096; Controls a LONG type of field. Returns the number of bytes in the variable, 0 represents the pass (? ) 0 means PassThru
Uodbc.defaultbinmode = 1; Control binary data. 0 represents????? Handling of binary data. 0 means passthru, 1 return as are, 2 convert to Char
; See the documentation for Odbc_binmode and Odbc_longreadlen for UODBC.DEFAULTLRL and uodbc.defaultbinmode explanations.
[MySQL]
Mysql.allow_persistent = on; Allow or disable persistent connections
Mysql.max_persistent =-1; Maximum number of persistent connections.-1 stands for No Limit
Mysql.max_links =-1; Maximum number of connections (persistent and non-persistent).-1 for unrestricted
Mysql.default_port =; Mysql_connect () The default port used, if not set, mysql_connect ()
; will use the variable $MYSQL _tcp_port, or mysql-tcp Entries (Unix) under/etc/services,
; or Mysql_port (in this order) that is defined in the compilation.
; Win32 environment, only mysql_port will be checked.
Mysql.default_socket =; The default socket name for the local MySQL connection. NULL, using MySQL built-in values
Mysql.default_host =; Mysql_connect () The host used by default (invalid in safe mode)
Mysql.default_user =; mysql_connect () User name used by default (invalid in safe mode)
Mysql.default_password =; mysql_connect () The password used by default (invalid in safe mode)
; Note that saving the password under this file is usually a * * * * * idea
; * Any user with access to PHP can run
; ' Echo cfg_get_var (' Mysql.default_password ') ' to display that password!
; And of course, anyone who has the power to read the file can see the password.
[mSQL]
Msql.allow_persistent = on; Allow or disable persistent connections
Msql.max_persistent =-1; Maximum number of persistent connections.-1 stands for No Limit
Msql.max_links =-1; Maximum number of connections (persistent and non-persistent).-1 for unrestricted
[Postgressql]
Pgsql.allow_persistent = on; Allow or disable persistent connections
Pgsql.max_persistent =-1; Maximum number of persistent connections.-1 stands for No Limit
Pgsql.max_links =-1; Maximum number of connections (persistent and non-persistent).-1 for unrestricted
[Sybase]
Sybase.allow_persistent = on; Allow or disable persistent connections
Sybase.max_persistent =-1; Maximum number of persistent connections.-1 stands for No Limit
Sybase.max_links =-1; Maximum number of connections (persistent and non-persistent).-1 for unrestricted
; sybase.interface_file = "/usr/sybase/interfaces"
Sybase.min_error_severity = 10; The minimum severity of the error displayed
Sybase.min_message_severity = 10; The lowest importance of the message displayed
Sybase.compatability_mode = off; Compatible with the old version of PHP 3.0 mode. If opened, this will cause PHP to automatically
; Give them the Sybase type based on the results,
; Instead of taking them all as strings.
; This compatibility mode will not be kept forever,
; So, make the changes you need in your code,
; and close the item.
[SYBASE-CT]
Sybct.allow_persistent = on; Allow or disable persistent connections
Sybct.max_persistent =-1; Maximum number of persistent connections.-1 stands for No Limit
Sybct.max_links =-1; Maximum number of connections (persistent and non-persistent).-1 for unrestricted
Sybct.min_server_severity = 10; The minimum severity of the error displayed
Sybct.min_client_severity = 10; The lowest importance of the message displayed
[Bcmath]
Bcmath.scale = 0; Number of 100-binary digits used for all Bcmath functions number of decimal digits for all Bcmath functions
[Browscap]
; browscap = Extra/browscap.ini
Browscap = C:\WIN\SYSTEM\inetsrv\browscap.ini
[Informix]
Ifx.default_host =; Ifx_connect () The host used by default (invalid in safe mode)
Ifx.default_user =; Ifx_connect () User name used by default (invalid in safe mode)
Ifx.default_password =; Ifx_connect () The password used by default (invalid in safe mode)
Ifx.allow_persistent = on; Allow or disable persistent connections
Ifx.max_persistent =-1; Maximum number of persistent connections.-1 stands for No Limit
Ifx.max_links =-1; Maximum number of connections (persistent and non-persistent).-1 for unrestricted
Ifx.textasvarchar = 0; If turned on, the Select status character returns the contents of a ' Text blob ' field, not its ID
Ifx.byteasvarchar = 0; If turned on, the Select status character returns the contents of a ' byte blob ' field, not its ID
Ifx.charasvarchar = 0; Tracks spaces that are stripped from fixed-length character Fulieri.
; may be valid for Informix SE users.
Ifx.blobinfile = 0; If opened, the contents of text and byte blobs are exported to a file
; Instead of saving it to memory.
Ifx.nullformat = 0; Null (empty) is returned as an empty field, unless it is set to 1.
; In this case (1), NULL is returned as a string null.
[Session]
Session.save_handler = files; Control method for saving/retrieving data
Session.save_path = C:\win\temp; Parameters passed to the controller when Save_handler is set as a file.
; This is the path where the data file will be saved.
Session.use_cookies = 1; Whether to use cookies
Session.name = Phpsessid
; The name of the session used in the cookie
Session.auto_start = 0; Initialize session at request start
Session.cookie_lifetime = 0; The save time for the cookie in seconds,
; or 0 o'clock until the browser is restarted
Session.cookie_path =/; Valid path for cookies
Session.cookie_domain =; Valid fields for cookies
Session.serialize_handler = PHP; The controller used to connect data
; PHP is the standard controller for PHP.
session.gc_probability = 1; In percent ' garbage collection (defragmentation) ' Process
; The possibility of starting each session initialization.
Session.gc_maxlifetime = 1440; After the number of seconds here, the saved data will be treated as
; ' Fragmentation (garbage) ' and cleaned out by the GC process.
Session.referer_check =; Check the HTTP reference to invalidate the IDs that are included in the URLs extra
session.entropy_length = 0; How many bytes are read from the file
Session.entropy_file =; Specifies that the session ID is established here
; Session.entropy_length = 16
; Session.entropy_file =/dev/urandom
Session.cache_limiter = NoCache; Set to {Nocache,private,public} to determine the HTTP
; Caching problems
Session.cache_expire = 180; Document is obsolete after n minutes
Session.use_trans_sid = 1; Use transitional SID Support if compile-time permission
; --enable-trans-sid
Url_rewriter.tags = "A=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
; Extension=php_mssql.dll
Mssql.allow_persistent = on; Allow or disable persistent connections
Mssql.max_persistent =-1; Maximum number of persistent connections.-1 stands for No Limit
Mssql.max_links =-1; Maximum number of connections (persistent and non-persistent).-1 for unrestricted
Mssql.min_error_severity = 10; The minimum severity of the error displayed
Mssql.min_message_severity = 10; The lowest importance of the message displayed
Mssql.compatability_mode = off; Compatible with the older version of PHP 3.0 mode.
[Assertion]
; ?????
; assert.active = on;? ASSERT (expr); Active by default
; assert.warning = on; Issue a PHP warning for each failed assertion.
; assert.bail = off; Don ' t bail out by default.
; assert.callback = 0; User-function to is called if an assertion fails.
; assert.quiet_eval = 0; Eval the expression with current error_reporting (). Set to True if you want Error_reporting (0) around the eval ().
[Ingres II]
Ii.allow_persistent = on; Allow or disable persistent connections
Ii.max_persistent =-1; Maximum number of persistent connections.-1 stands for No Limit
Ii.max_links =-1; Maximum number of connections (persistent and non-persistent).-1 for unrestricted
Ii.default_database =; Default database (format: [Node_id::]dbname[/srv_class]
Ii.default_user =; Default User
Ii.default_password =; Default password
[Verisign Payflow Pro]
Pfpro.defaulthost = "test.signio.com"; The default Signio server
Pfpro.defaultport = 443; Default port for connection
Pfpro.defaulttimeout = 30; Default timeout time in seconds
; Pfpro.proxyaddress =; The default agent's IP address (if required)
; Pfpro.proxyport =; The default proxy port
; Pfpro.proxylogon =; Default proxy login (logon username)
; Pfpro.proxypassword =; Password for the default agent
[Sockets]
Sockets.use_system_read = on; Use the system's read () function instead of php_read () encapsulation
; Local Variables: (locally variable)
; Tab-width:4
; End:




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.