phpinfo()函数怎么php中进行屏蔽

phpinfo()函数怎么php中进行屏蔽?相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。

修改php.ini文件,在里面找到如下行

复制代码 代码如下:


disable_functions = ; This directive allows you to disable certain
; functions for security reasons. It receives
; a comma separated list of function names.
; This directive is *NOT* affected by whether
; Safe Mode is turned on or off.


将其写成
disble_functions = phpinfo
重启apache就能实现屏蔽phpinfo();函数了。

看完上述内容,你们掌握phpinfo()函数怎么php中进行屏蔽的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注行业资讯频道,感谢各位的阅读!