哈希空间 Ctrl + F 进行搜索
首页 php手册中文版 CSS中文手册 哈希文档 Markdown在线工具

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  
[PATH=] PHP_INI_SYSTEM  

这是配置指令的简短说明。

[HOST=<host>]

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

示例 #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.

示例 #2 Add security script for protected areas

[PATH=/home/site/public/secure]
auto_prepend_file=security.php
打开 哈希空间 微信小程序中查看更佳