开发者

How do I disable a function(s) from usage in PHP?

I wanted to know the way t开发者_Go百科o disable a function from usage in PHP.

Thanks


In the php.ini configuration file, you can use the disable_functions parameter. For example, to disable the symlink() and system() functions, you would use:

disable_functions = "symlink,system"


If you can give me more details, like what you are trying to do maybe we can provide a better solution. To answer your query if you want to disable a function this should do:

override_function('test', '', '');

this will override function test with a function that does nothing.


you may try to override that function to do nothing

http://php.net/manual/en/function.override-function.php

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜