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: The current working directory, the environment variable PHPRC
, the path indicated, and 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 of the file is very simple. White-space characters and lines starting with a semicolon ´;´ are simply ignored (as you might
; guessed). Chapter headings (for example, [Foo]) are also simply ignored, even though they may be
in the future;
;
; indicates that the following syntax is specified:
; indicates that the 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), a
in the INI constant, a (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 expressed by not writing anything after the equals sign, or with the None keyword:
;
; foo =; set Foo to an empty string
; foo = none; the foo is set to an empty string
; foo = "None"; Foo is placed as a string ´none´
;
; If you use constants in your value settings, these constants belong to the extended library that is dynamically transferred (not the extension of PHP, or
; Zend extension), you can only transfer these extended rows * and use these constants.
;
; All values set in the Php.ini-dist file are the same as the built-in defaults (which is to say, if php.ini
; are not used or you delete the rows, 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
; Allowed? Identification (this simple representation). Otherwise only 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.
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.
; As long as you can be
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
; 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.
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 = "; error_append_string = "; 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
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 (´´ out of ´ without ´)
; 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
;;;;;;;;;;;;;;;;;;;;;;
; 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
[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
; 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 older version of PHP 3.0 mode. If turned on, 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; The maximum number of persistent connections. -1 means no limit
Sybct.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
Sybct.min_server_severity = 10; Minimum server message severity to display
Sybct.min_client_severity = 10; Minimum client message severity to display
[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:winsysteminetsrvrowscap.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; The maximum number of persistent connections. -1 means no limit
Ifx.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
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 emp; 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; ´garbage collection (defragmentation) ´ process by percentage
; 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 cleared 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 =/program/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
[MSSQL]
; Extension=php_mssql.dll
Mssql.allow_persistent = on; Allow or disable persistent connections
Mssql.max_persistent =-1; The maximum number of persistent connections. -1 means no limit
Mssql.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
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; The maximum number of persistent connections. -1 means no limit
Ii.max_links =-1; Maximum number of connections (persistent and non-persistent). -1 means no limit
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
; Local Variables:
; Tab-width:4
; End: