php.ini 锟斤拷锟矫讹拷锟叫憋拷

This list includes the php.ini sections you can set to configure your PHP setup on a per Host or Path basis. These sections are optional.

These sections don't directly affect PHP. They are used to group other php.ini directives together and to get them to act upon a particular host or on a particular path.

These sections are used only in CGI/FastCGI mode and they can not set extension and zend_extension directives.

锟斤拷锟矫讹拷
锟斤拷锟斤拷 锟斤拷锟睫改凤拷围 锟斤拷锟斤拷锟斤拷志
[HOST=] PHP_INI_SYSTEM 锟斤拷 PHP 5.3.0 时锟斤拷锟接★拷
[PATH=] PHP_INI_SYSTEM 锟斤拷 PHP 5.3.0 时锟斤拷锟接★拷

锟斤拷锟斤拷锟斤拷锟斤拷指锟斤拷募锟斤拷说锟斤拷锟斤拷

[HOST=<host>]

This section allows you to define a set of php.ini directives that will take effect on the named host.

Example #1 Activate full on-screen error reporting for dev. domain

[HOST=dev.site.com]
error_reporting = E_ALL
display_errors = On

[PATH=<path>]

This section allows you to define a set of php.ini directives that will take effect when a script runs from the named path.

Example #2 Add security script for protected areas

[PATH=/home/site/public/secure]
auto_prepend_file=security.php