Php. ini for php-5.2 Chinese edition (1)-php Tutorial

Source: Internet
Author: User
Php for php-5.2. ini Chinese version (a) reference: lamp.linux.gov.cnPHPphp-5_2-ini.html author: jin bu guo ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;& nbsp; about php. ini & nbsp ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; php for php-5.2. ini Chinese version (1)
Reference: http://lamp.linux.gov.cn/PHP/php-5_2-ini.html

Author: jin bu guo

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; About php. ini;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

The file must be named 'php. ini 'and placed in the directory specified by the PHPINIDir command in httpd. conf.
The latest php. ini version can be viewed in the following two locations:
; Http://cvs.php.net/viewvc.cgi/php-src/php.ini-recommended? View = co
; Http://cvs.php.net/viewvc.cgi/php-src/php.ini-dist? View = co


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Syntax;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; The syntax of this file is very simple. Blank characters and rows starting with semicolons are ignored.
Chapter titles (for example, [php]) are also ignored, even if they may make some sense in the future.
;
Set the command format as follows:
; Directive = value
; Directive name (direve VE) is case sensitive! Therefore, "foo = bar" is different from "FOO = bar ".
; Value can be:
; 1. a string defined by quotation marks (for example, "foo ")
; 2. a Number (integer or floating point number, such as: 0, 1, 34,-1, 33.55)
3. a PHP constant (for example, E_ALL, M_PI)
4. an INI constant (On, Off, none)
; 5. an expression (for example, E_ALL &~ E_NOTICE)
;
The expression in the INI file only uses the bitwise operator, non-logical, and parentheses:
; | Bit or
; & Bit and
;~ Bitwise
;! Non-logical
;
; Boolean indicates opening with On and Off with Off.
;
An empty string can be used after the equal sign without any representation, or with the none keyword:
; Foo =; set foo as an empty string
; Foo = none; set foo as an empty string
; Foo = "none"; set foo as the string 'none'
;
If you use constants in the command value dynamic extension (PHP extension or Zend extension,
You can only use these constants after loading these dynamically scalable command lines.


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Httpd. conf;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

You can overwrite the php. ini value for a specific virtual host or directory in httpd. conf for more flexible configuration:
; Php_admin_value nameValue; sets non-bool commands. if the value is set to none, the previous settings are cleared.
; Php_admin_flagName on | off; only used to set bool commands
; [Prompt] because many commands do not allow setting with php_value/php_flag, we do not recommend using these two commands.
PHP constants (such as E_ALL) can only be used in php. ini. the corresponding mask value must be used in httpd. conf.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.