欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

解析如何屏蔽php中的phpinfo()函數(shù)

 更新時(shí)間:2013年06月06日 15:20:44   作者:  
本篇文章是對(duì)如何屏蔽php中的phpinfo()函數(shù)進(jìn)行了詳細(xì)的分析介紹,需要的朋友參考下

我們配置php環(huán)境的時(shí)候往往都會(huì)寫(xiě)phpinfo();這個(gè)函數(shù)來(lái)測(cè)試php環(huán)境是否安裝成功,但往往這個(gè)函數(shù)也會(huì)給系統(tǒng)帶來(lái)安全隱患,那么如何讓關(guān)掉這個(gè)函數(shù)呢?下面介紹一種方法:
修改php.ini文件,在里面找到如下行

復(fù)制代碼 代碼如下:

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.

將其寫(xiě)成
disble_functions = phpinfo
重啟apache就能實(shí)現(xiàn)屏蔽phpinfo();函數(shù)了。

相關(guān)文章

最新評(píng)論