The php.ini configuration file is described in great detail here. A lot of PHP errors can be resolved from the configuration here!
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 lines beginning 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 identifier = value
; directive = value
; Indicates that the identifier is case-sensitive *-Foo=bar differs from foo = bar.
;
; value can be a string, a number, a PHP constant (such as: E_all or M_PI), the INI constant in the
, a (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
;
; Boolean flag available 1, ON, True or Yes These values are in the open state.
; they can be 0, off, False, or No. These values are placed in the off state.
;
; An empty string can be used after the equal sign to not write anything, or with the None keyword:
;
; foo =; set Foo to an empty string
; foo = none; set Foo to an empty string
; foo = "None"; put Foo as String ´none´
;
; If you use constants in your value settings, these constants belong to the extended library of dynamic push-in (not PHP extensions, which 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 defaults (that is, if php.ini
is not used or if you delete the lines, the default values are the same).
;;;;;;;;;;;;;;;;;;;;
; Language Options;
;;;;;;;;;;;;;;;;;;;;
Engine = On
; Makes PHP scripting language engine (PHP scripting language Engine) valid under Apache.
Short_open_tag = On
; Allow? Identification (this simple representation). Otherwise only 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.
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.
; 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 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.
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 last Error/warning message to variable $php_errormsg (Boolean)
; error_prepend_string = "; error_append_string = "; 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
; html# "target=_blank>$http_*_vars[] array accesses 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 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 the $http_*_vars[] Array valid, here * in use
http://www.bkjia.com/PHPjc/532407.html www.bkjia.com true http://www.bkjia.com/PHPjc/532407.html techarticle The php.ini configuration file is described in great detail here. A lot of PHP errors can be resolved from the configuration here! This file controls many aspects of PHP's view. In order for PHP to read this ...