Php. ini configuration, php. ini php-5.2.0 configuration instructions

Source: Internet
Author: User
Php. detailed instructions on php-5.2.0 configuration in ini; author: kingbu ;;;;;;;;;;;;;;;;;; copyright statement ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; BUG report, discussion and discussion;

Detailed explanation of php-5.2.0 configuration commands in php. ini
;;;;;;;;;;;;;;;;
; Author: jin bu guo
;;;;;;;;;;;;;;;;
; Copyright statement ;;
;;;;;;;;;;;;;;;;;;;;;;;;;
; BUG reports, discussions and discussions ;;
;;;;;;;;;;;;;;;;;;;;;;;;;
Due to the limited degree of author, it is not guaranteed that the content of the work is accurate. please identify it yourself during browsing.
If you have invented an error in your work, please send a letter stating that, even if it is a mistake, I will accept any suggestions to increase the morality of your work.
If you are willing to further discuss the related content in your work with me, you are welcome to contact me.
; Contact method: Email:Csfrank@citiz.net; QQ: 70171448; MSN:Csfrank122@hotmail.com
;
;;;;;;;;;;;;;;
; Introduction ;;
;;;;;;;;;;;;;;
This article is not a brief translation of the English version of php. ini, but a reference to a lot of materials, combined with their own understanding,
Added some practical module configuration clarification based on the original php. ini, and adjusted the file content arrangement.
Because the author does not like "no-free", the configuration options of other database modules except MySQL and PostgreSQL are deleted.

;;;;;;;;;;;;;;;;;
; 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 version of php. ini can be viewed in the following two statuses:
;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. The vacant characters and the line starting with a semicolon are neglected.
Chapter titles (for example, [php]) are also neglected, even if they may make some sense in the future.
;
The command format is 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 expressions in the INI file only apply: Bit Operators, non-logical operators, and parentheses:
; | Bit or
; & Bit and
;~ Bitwise
;! Non-logical
;
; Boolean mark is opened by the On expression, and closed by the Off expression.
;
An empty string can be used after the equal sign without writing anything, or use the none keyword:
; Foo =; set foo as an empty string
; Foo = none; set foo as an empty string
; Foo = \ "none \"; set foo to string \ 'none \'
;
If you apply a constant in the command value of dynamic expansion (PHP expansion or Zend expansion,
Then you can only apply these constants after loading these dynamically expanded command lines.


;;;;;;;;;;;;;;;;;;
; Httpd. conf ;;
;;;;;;;;;;;;;;;;;;
You can also overwrite the php. ini value in httpd. conf for more flexible configuration:

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.