[PHP]
; PHP is also a constantly evolving tool, and its functionality is constantly being Truncated.
; and Php.ini's settings change can reflect a considerable change,
; It's good to study php.ini before using the new PHP Version.
;;;;;;;;;;;;;;;;;;;
; 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 look for the file in these places: current working directory; environment variable PHPRC
; 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 substituted with the-c parameter.
; The syntax of the file is very simple. Blank characters and semicolons '; ' The starting line is simply ignored (as you might
; guessed the same). Chapter headings (for Example: [Foo]) are also simply ignored, even though they may in the future
; There is a sense of some kind.
;
; The instruction is specified using the following syntax:
; Indicates identifier = value
; directive = value
; Indicates that the identifier is case-sensitive *-foo=bar differs from foo = bar.
;
; The value can be a string, a number, a PHP constant (such as: e_all or m_pi), the INI constant in the
; One (on, Off, True, False, Yes, No and None), or an expression
; (such as: E_all & ~e_notice), or a string enclosed in quotation marks ("foo").
;
; INI file is limited to bitwise operators and Parentheses.
; | Bitwise OR
; & Bitwise AND
; ~ Bitwise NOT
; ! Boolean not
;
; The Boolean flag can be used 1, on, True or Yes to put these values in the open State.
; They are available in 0, off, False or No These values are turned off.
;
; An empty string can be used after the equal sign to not write 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, and these constants belong to the extended library of dynamic push-in (not the extension of PHP, it is
; Zend extension), You can only use these constants after you have transferred the lines of these extensions * *.
;
; All values set in the Php.ini-dist file are the same as the built-in default values (this is to say, if php.ini
; is not used or you delete these lines, the default value is the same).
;;;;;;;;;;;;;;;;;;;;
; Language options;
;;;;;;;;;;;;;;;;;;;;
Engine = On
; Makes PHP scripting language engine (php scripting language engine) valid under Apache.
Short_open_tag = On
; Allow tags to be recognized.
Asp_tags = Off
; Allow Asp-style tags
Precision = 14
; Number of significant digits when floating-point type is displayed
Y2k_compliance = Off
; Whether to open 2000 adaptation (may cause problems in non-y2k adapted Browsers)
output_buffering = Off
; The output cache allows you to send headers (headers, including cookies) even after the output body Content.
; The cost is that the output layer slows down a little bit. You can use output caching to open the output cache at run Time.
; alternatively, set the indicator to on to make the output cache for all files Open.
Output_handler =; You can redirect all the output of your script to a function,
; Doing so can be useful for handling or logging it.
; For example, If you set this output_handler to "ob_gzhandler",
; The output is transparently compressed for a browser that supports gzip or deflate Encoding.
; Set an output processor to automatically turn on the output buffer.
Implicit_flush = Off
; Forcing flush (refresh) allows PHP to tell the output layer to automatically refresh its 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 causes serious runtime conflicts and is recommended to be opened only during the debug process.
Allow_call_time_pass_reference = On
; Whether to allow arguments to be passed by reference when forcing a function Call. This approach has been protested,
; and may no longer be supported in future versions of Php/zend.
; Encouraged to specify which parameters are passed by reference in the function Declaration.
; You are encouraged to try to close this option and confirm that your script still works to ensure that in future versions of the language
; They can still Work. (you'll get a warning every time you use this feature, and the argument 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 indicator contains a comma-delimited list of Prefixes. In safe mode, users can only replace
; The value of the environment variable that begins with the prefix listed Here.
; By default, users will only be able to set environment variables that start with php_ (for example, php_foo=bar).
; Note: If this instruction 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 protected even when the Safe_mode_allowed_env_vars is set to ALLOW.
Disable_functions =
; This directive allows you to invalidate a particular function for security reasons.
; It accepts a comma-delimited list of function Names.
; This instruction * is not affected by the open security Mode.
; The color of the syntax highlighting Mode.
; You can work as long as you can accept Something.
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 is installed on the server (for example: add it-php-to the Web service
; The Signal sent).
; (my personal opinion, in the presence of what power-by header, turn this off.) )
; It will not be 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 per script, per second
Memory_limit = 8388608; The maximum amount of memory a script can use (this is 8MB)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error Handling and logging;
; Error control and registration;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; The error report is Bitwise. Or add up the numbers to get the error report level you Want.
; E_all-all Errors and warnings
; E_error-fatal run-time Error
; E_warning-run-time Warning (non-fatal error)
; E_parse-compile-time Parse Error
; E_notice-runtime Reminders (these are often caused by bugs in your code,
, or it may be intentional behavior. (for example, An uninitialized variable is automatically initialized to a
The fact of an empty string uses an uninitialized Variable)
; E_core_error-fatal error occurred during initialization of PHP startup
; E_core_warning-warning (non-fatal Error) occurred during initialization of PHP startup
; E_compile_error-compile-time Fatal Error
; E_compile_warning-compile-time Warning (non-fatal error)
; E_user_error-error message generated by the user
; 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; Display error message (as part of Output)
; On the final published web site, It is strongly recommended that you turn off this feature and use the
; Error log instead (see below).
; Continue to make display_errors available in the final published Web site
; Expose some information about security, such as the file path on your web service,
; Your database planning or other Information.
Display_startup_errors = Off; Even when Display_erroes is open, it happens in Php's boot steps
; Error will not be Displayed.
; It is strongly recommended to keep the display_startup_errors closed,
; In addition to the process of error-changing.
Log_errors = Off; Error logged in log file (server specified log, stderr standard error output, or Error_log (below))
; As stated above, It is strongly recommended that you log errors in the final published Web site
; Replace the direct error Output.
Track_errors = Off; Save most recent error/warning message to variable $php _errormsg (boolean)
; error_prepend_string = ""; String to output before the error message
; error_append_string = ""; The string to output after the error message
; error_log = filename; Logging the error log in the specified file
; error_log = syslog; Logging error log in Syslog (NT event log, Windows 95 is not valid)
warn_plus_overloading = Off; Warning when ' + ' is used for strings
;;;;;;;;;;;;;;;;;
; Data handling;
;;;;;;;;;;;;;;;;;
Variables_order = "egpcs"; This instruction describes the PHP record
; GET, POST, Cookie, Environment and built-in the order of these Variables.
; (represented by G, P, C, E & S, usually referred to as egpcs or GPC).
; The new value replaces the old value by a left-to-right Record.
Register_globals = on; Whether to register these egpcs variables as global variables.
; If you don't want the user data to be out of scope, you might want to close it.
; It's more meaningful to connect with track_vars-so you can get through
; $HTTP _*_vars[] Array accesses all the 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 the number of variables)
; (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 $http_*_vars[] array valid, here * in use
; ENV, POST, GET, COOKIE or server replace
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; Use the Magic reference in the input Get/post/cookie data
; (this is the original, hehe, the so-called magic quotes should be used to escape multibyte in the quoted control characters, such as ' .... )
Magic_quotes_runtime= Off; Use a magic reference to the data generated at run time,
; For example: data obtained with SQL queries, data obtained with the EXEC () function, etc.
Magic_quotes_sybase = Off; Use Sybase as a magic reference ("out of the way" instead of ')
; Automatically add files before and after a PHP document
Auto_prepend_file =
Auto_append_file =
; Like 4.04b4, PHP defaults to the "content-type:" header to output a character encoding.
; Invalidates the output character set as long as it is set to Null.
; The built-in default value for PHP 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 search for when opening a script with/~username, only valid when not empty
; Upload_tmp_dir =; Temporary directory for files uploaded with HTTP protocol (use system default if not Specified)
Upload_max_filesize = 2097152; File upload is limited to 2 Meg by default
Extension_dir = c:\php\; A directory that holds the Loadable expansion library (module)
ENABLE_DL = on; Whether to make DL () Valid.
; The DL () function on a multithreaded server * does not work well,
; For example, IIS or Zeus, and on which it is disabled by default
;;;;;;;;;;;;;;;;
; File uploads;
;;;;;;;;;;;;;;;;
File_uploads = on; Whether to allow HTTP mode file upload
; Upload_tmp_dir =; Temp directory for files uploaded by HTTP (use system default if not Specified)
Upload_max_filesize = 2M; Maximum license size for uploaded files
; Fopen wrappers;
;;;;;;;;;;;;;;;;;;
Allow_url_fopen = on; Whether to allow URLs 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.
; Specify the location of the extension library with the Extension_dir Above.
; 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, so it's not necessary to use its DLL
;;;;;;;;;;;;;;;;;;;
; Module settings;
; 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 = [email protected] ; only for Win32 systems
; Sendmail_path =; for Unix only, It can also support parameters (default is ' sendmail-t-i ')
[Debugger]
Debugger.host = localhost
Debugger.port = 7869
debugger.enabled = False
[Logging]
; These configurations indicate the logging mechanism 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 disallow persistent connection
Uodbc.check_ Persistent = on; Check that the connection is also available before reuse;
Uodbc.max_persistent =-1; Maximum number of persistent connections. -1 for unrestricted
Uodbc.max_links = 1; Maximum number of connections (persistent and non-persistent). -1 stands for unrestricted
UODBC.DEFAULTLRL = 4096; controls the LONG type Field. Returns the number of bytes of the variable, and 0 represents the pass (? ) 0 means passthru
Uodbc.defaultbinmode = 1; controls binary Data. 0 stands for????? Handling of binary Data. 0 means passthru, 1 return as is, 2 convert to char
; see the documentation for Odbc_binmode and Odbc_longreadlen to get UODBC.DEFAULTLRL and Uodbc.defaultbinmode's Explanation.
[MySQL]
Mysql.allow_persistent = on; Allow or disallow persistent connections
Mysql.max_persistent =-1; The maximum number of persistent connections. -1 means no Limit
Mysql.max_links =-1; The maximum number of connections (persistent and non-persistent). -1 means no Limit
Mysql.default_port =; Mysql_connect () Default Port used, if not set, mysql_connect ()
; The variable will be used $MYSQL _tcp_port, or the MYSQL-TCP entry under/etc/services (unix),
; Or in the compilation is defined by the Mysql_port (in this order)
; Win32 environment, only Mysql_port will be checked.
Mysql.default_socket =; The default socket name for the local MYSQL Connection. empty, use MYSQL built-in values
Mysql.default_host =; Mysql_connect () Default host (not available in safe mode)
Mysql.default_user =; Mysql_connect () user name used by default (not valid in safe mode)
Mysql.default_password =; Mysql_connect () default password used (invalid in safe mode)
; Note that saving passwords under this file is usually a bad * idea
; * Any user with PHP access can run
; ' Echo cfg_get_var (' mysql.default_password ') ' to show that password!
; And of course, any user who has read the File's power can see that Password.
[mSQL]
Msql.allow_persistent = on; Allow or disallow persistent connections
Msql.max_persistent =-1; The maximum number of persistent connections. -1 means no Limit
Msql.max_links =-1; The maximum number of connections (persistent and non-persistent). -1 means no Limit
[postgressql]
Pgsql.allow_persistent = on; Allow or disallow persistent connections
Pgsql.max_persistent =-1; The maximum number of persistent connections. -1 means no Limit
Pgsql.max_links =-1; The maximum number of connections (persistent and non-persistent). -1 means no Limit
[Sybase]
Sybase.allow_persistent = on; Allow or disallow persistent connections
Sybase.max_persistent =-1; The maximum number of persistent connections. -1 means no Limit
Sybase.max_links =-1; The maximum number of connections (persistent and non-persistent). -1 means no Limit
; sybase.interface_file = "/usr/sybase/interfaces"
Sybase.min_error_severity = 10; Minimum severity of errors displayed
Sybase.min_message_severity = 10; Minimum importance of the displayed message
Sybase.compatability_mode = Off; Mode compatible with older versions of PHP 3.0. If turned on, this will cause PHP to automatically
; Give them the type of Sybase based on the results,
; Instead of treating them all as strings.
; This compatibility mode will not be kept forever,
; So put your code in the necessary modifications,
; and closes the Item.
[sybase-ct]
Sybct.allow_persistent = on; Allow or disallow persistent connections
Sybct.max_persistent =-1; The maximum number of persistent connections. -1 means no Limit
Sybct.max_links =-1; The maximum number of connections (persistent and non-persistent). -1 means no Limit
Sybct.min_server_severity = 10; Minimum severity of errors displayed
Sybct.min_client_severity = 10; Minimum importance of the displayed message
[bcmath]
Bcmath.scale = 0; The number of 100 decimal digits used for all Bcmath functions is 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 () Default host (not available in safe mode)
Ifx.default_user =; Ifx_connect () user name used by default (not valid in safe mode)
Ifx.default_password =; Ifx_connect () default password used (invalid in safe mode)
Ifx.allow_persistent = on; Allow or disallow persistent connections
Ifx.max_persistent =-1; The maximum number of persistent connections. -1 means no Limit
Ifx.max_links =-1; The maximum number of connections (persistent and non-persistent). -1 means no Limit
Ifx.textasvarchar = 0; If open, the Select State character returns the contents of a ' text blob ' field instead of its ID
Ifx.byteasvarchar = 0; If open, the Select State character returns the contents of a ' byte blob ' field instead of its ID
Ifx.charasvarchar = 0; Track the space stripped from the fixed-length word Fulieri.
; may be valid for Informix SE Users.
Ifx.blobinfile = 0; If open, the contents of text and byte blobs are exported to a file
; Instead of saving to Memory.
Ifx.nullformat = 0; Null (null) 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 mode for saving/retrieving data
Session.save_path = C:\win\temp; Parameters that are passed to the controller when the Save_handler is set to 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; Initializing session at request startup
Session.cookie_lifetime = 0; The time to save the cookie in seconds,
; or 0 o'clock until the browser is restarted
Session.cookie_path =/; Valid path for cookies
Session.cookie_domain =; The valid domain of the cookie
Session.serialize_handler = php; The controller used to connect the data
; PHP is the standard controller for PHP.
Session.gc_probability = 1; ' Garbage collection (defragmentation) ' process by percentage
; The possibility of starting each time the session is Initialized.
Session.gc_maxlifetime = 1440; After the number of seconds referred to here, the saved data will be treated as
; ' Fragment (garbage) ' and cleared by the GC Process.
Session.referer_check =; Check for HTTP references to invalidate IDs that are included in the additional URLs
Session.entropy_length = 0; How many bytes are read from a file
Session.entropy_file =; Specify the session ID to be 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 issues
Session.cache_expire = 180; Document is obsolete after n minutes
Session.use_trans_sid = 1; Use the transitional SID support if the Compile-time license
; --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 disallow persistent connections
Mssql.max_persistent =-1; The maximum number of persistent connections. -1 means no Limit
Mssql.max_links =-1; The maximum number of connections (persistent and non-persistent). -1 means no Limit
Mssql.min_error_severity = 10; Minimum severity of errors displayed
Mssql.min_message_severity = 10; Minimum importance of the displayed message
Mssql.compatability_mode = Off; Mode compatible with older versions of PHP 3.0.
[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 disallow persistent connections
Ii.max_persistent =-1; The maximum number of persistent connections. -1 means no Limit
Ii.max_links =-1; The 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 connections
Pfpro.defaulttimeout = 30; Default time-out by seconds
; Pfpro.proxyaddress =; IP address of the default proxy (if Required)
; Pfpro.proxyport =; The default proxy port
; Pfpro.proxylogon =; Default Proxy login (logon Username)
; Pfpro.proxypassword =; Password for the default proxy
[Sockets]
Sockets.use_system_read = on; Replace the Php_read () package with the Read () function of the system
; Local Variables: (locally Variable)
; Tab-width:4
; End
PHP configuration file detailed php.ini "reprint"