Home  >  Article  >  Backend Development  >  Chinese php.ini_PHP tutorial

Chinese php.ini_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:28:07745browse

[PHP] ; PHP is still an evolving tool, and its functions are constantly being reduced; and changes in php.ini settings can reflect considerable changes, ; before using a new PHP version, study the php.ini function Beneficial;;;;;;;;;;;;;;;;;;;;; About this file; ;;;;;;;;;;;;;;;;;;;;; This file controls Views on 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: the current working directory; the environment variable PHPRC; the path specified; 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 have guessed). 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 = value ; directive = value ; directive is *case-sensitive* - foo=bar is different from FOO = bar. ; ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one of the INI constants (On, Off, True, False, Yes, No and None), or an expression ; (eg: E_ALL & ~E_NOTICE), or a quoted string ("foo"). ; ; INI file expressions are restricted to bitwise operators and parentheses. ; | bitwise OR ; & bitwise AND ; ~ bitwise NOT ; ! boolean NOT ; ; Boolean flags are available 1, On, True or Yes. These values ​​are turned on. ; They can be turned off using the values ​​0, Off, False or No. ; ; An empty string can be represented by writing nothing after the equal sign, or by using the None keyword: ; ; foo = ; sets foo to an empty string; foo = none ; sets foo to an 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 (not PHP extensions, that is; Zend extensions), you can only call them in These extended lines *after* use these constants. ; ; 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 you delete these lines, the defaults are the same). ;;;;;;;;;;;;;;;;;;;;;; Language options; ;;;;;;;;;;;;;;;;;;;;;; engine = On ; Enable PHP The scripting language engine (PHP scripting language engine) is available under Apache. short_open_tag = On ; Allow 标识(这种简单表示)。否则 仅有

Statement:
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