Home > Backend Development > PHP Tutorial > Chinese annotated version of the php configuration file php.ini_PHP tutorial

Chinese annotated version of the php configuration file php.ini_PHP tutorial

WBOY
Release: 2016-07-21 14:57:21
Original
736 people have browsed it

This file controls many aspects of PHP. In order for PHP to read this file, it must be named
; ´php.ini´. PHP will search for the file in these places in sequence: the current working directory; the path specified by the environment variable PHPRC
;; the path specified during compilation.
; Under Windows, the path when compiling is the Windows installation directory.
; In command line mode, the search path of php.ini can be replaced with the -c parameter.


; The syntax of this file is very simple. Whitespace characters and lines starting with a semicolon ´;´ are simply ignored (as you might
; guess). Section titles (eg: [Foo]) are also simply ignored, even though they may
; have some meaning in the future.
;
; directives are specified using the following syntax:
; directive identifier = value
; directive = value
; directive identifier is *case-sensitive* - foo=bar differs at FOO = bar.
;
; The value can be a string, a number, a PHP constant (such as: E_ALL or M_PI),
in 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").
;
; Expression of INI file Restricted to bitwise operators and parentheses.
; | bitwise OR
; & bitwise AND
; ~ bitwise NOT
; ! boolean NOT
;
; Boolean flags can be 1, On, True or Yes. These values ​​are placed in open status.
; They can be turned off using the values ​​0, Off, False or No.
;
; An empty string can be represented by not writing anything after the equal sign, or using the None keyword:
;
; foo = ; Set foo to an empty string
; foo = none ; Set foo to the empty string
; foo = "none" ; Set foo to the string ´none´
;
; If you use constants in value settings, and These constants belong to dynamically loaded extension libraries (either PHP extensions, or Zend extensions), and you can only use these constants *after* the lines that load these extensions.
;
; All values ​​set in the php.ini-dist file are the same as the built-in default values ​​(that is, if php.ini
; is not used or you delete them row, the default value is the same).


;;;;;;;;;;;;;;;;;;;;;;
; Language options;
;;;;;;;;;;; ;;;;;;;;;


engine = On
; Make the PHP scripting language engine (PHP scripting language engine) valid under Apache.
short_open_tag = On
; allows the tag (this simple representation). Otherwise only the tags will be recognized.
asp_tags = Off
; Allow ASP-style <% %> tags
precision = 14
; The number of significant digits when displaying floating point type numbers


y2k_compliance = Off
; Whether to turn on year 2000 adaptation (may cause problems in non-Y2K compliant browsers)


output_buffering = Off
; Output buffering allows you to output the body content even after The cost of sending headers (including cookies) line
is that the output layer slows down a little. You can use Output Cache to turn on output caching at runtime,
; or set the directive to On here to turn on output caching for all files.


implicit_flush = Off
; Force flush to 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 every print() or echo() call and after every HTML block.
; Turning on this setting will cause serious runtime conflicts. It is recommended to turn it on only during debugging.


allow_call_time_pass_reference = On
; Whether to force parameters to be passed by reference when calling the function. This method was protested
; and may no longer be supported in future versions of PHP/Zend.
; It is encouraged to specify which parameters are passed by reference in the function declaration.
; You are encouraged to try turning this option off and confirm that your scripts still work properly to ensure future versions of the language

    7 pages in total:
  • Previous page
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • Next page

http://www.bkjia.com/PHPjc/364033.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/364033.htmlTechArticle This document controls many aspects of PHP. In order for PHP to read this file, it must be named ; acute;php.iniacute;. PHP will look for the file in these places: Current working directory...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template