Disable php functions via .htaccess

后端 未结 4 967
北荒
北荒 2020-12-21 16:28

I want to disable few php functions only in a specific folder, I thought of using htaccess:

For example I have tried adding this line:

php_admin_value disab

4条回答
  •  执念已碎
    2020-12-21 17:05

    php_admin_value is not valid in .htaccess files. It can only be used in httpd.conf. See: http://php.net/configuration.changes for details.

    Use php_value instead, or add the directive in a or block in httpd.conf.

提交回复
热议问题