跨境电商
经验交流分享

PHP配置文件及ini_set()的设置范围

These modes determine when and where a PHP directive may or may not be set, and each directive within the manual refers to one of these modes. For example, some settings may be set within a PHP script using ini_set(), whereas others may require php.ini or httpd.conf.

For example, the output_buffering setting is PHP_INI_PERDIR therefore it may not be set using ini_set(). However, the display_errors directive isPHP_INI_ALL therefore it may be set anywhere, including with ini_set().

Mode Value Meaning
PHP_INI_USER 1 Entry can be set in user scripts (like with ini_set()) or in the Windows registry
PHP_INI_PERDIR 6 Entry can be set in php.ini, .htaccess or httpd.conf
PHP_INI_SYSTEM 4 Entry can be set in php.ini or httpd.conf
PHP_INI_ALL 7 Entry can be set anywhere

 

 

赞(0)
未经允许不得转载:锐想 » PHP配置文件及ini_set()的设置范围
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!

 

锐想电商 - 跨境电商经验交流分享

锐想无限