简体   繁体   中英

Disallow php script to change the php_value set in .htaccess

Is it possible to disable php changing the value using ini_set('display_errors ', 0) when I have defined this in .htaccess file?

php_value display_errors 1

You can use php_admin_value directive in virtual host, this cannot be overwritten later in PHP scripts.

EDIT: My bad, this can be used only in virtual host in Apache.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM