PHP: How To Disable Dangerous Functions

后端 未结 6 1163
青春惊慌失措
青春惊慌失措 2020-11-28 08:33

How can I disable the dangerous eval function? Can that be done using ini_set function?

Also how to disable following functions? Ca

6条回答
  •  孤城傲影
    2020-11-28 09:25

    The disable_functions directive is only available in the php.ini configuration.

    To disable functions at runtime wouldn't make much sense, since you would be able to modify the disabled function list at runtime to re-enable functions as well.

提交回复
热议问题