; 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 perspective. 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 this file is very simple. Blank character and semicolon '; ' 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
; Allow tags to 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 pass arguments by reference when forcing a function call. This approach has been 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 will 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-delimited 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.
; Anything that can be accepted can 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, in the presence of what power-by header, turn this off.) )
; 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;
; The error report 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
; 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 = ""; The string to output before the error message
; error_append_string = ""; 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
; (The original text is like this, hehe, the so-called magic quotes should mean to use the escape alphanumeric in the reference control character, 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; Use Sybase form of magic Reference (use ' out ' 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; The maximum number of persistent connections. -1 means no limit
Uodbc.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
UODBC.DEFAULTLRL = 4096; Controls a LONG type of field. Returns the number of bytes in the variable, and 0 represents the pass (? ) 0 means PassThru
Uodbc.defaultbinmode = 1; Controls 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; The maximum number of persistent connections. -1 means no limit
Mysql.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
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; The maximum number of persistent connections. -1 means no limit
Msql.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
[Postgressql]
Pgsql.allow_persistent = on; Allow or disable persistent connections
Pgsql.max_persistent =-1; The maximum number of persistent connections. -1 means no limit
Pgsql.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
[Sybase]
Sybase.allow_persistent = on; Allow or disable persistent connections
Sybase.max_persistent =-1; The maximum number of persistent connections. -1 means no limit
Sybase.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
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.