亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

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

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

我們配置php環(huán)境的時候往往都會寫phpinfo();這個函數(shù)來測試php環(huán)境是否安裝成功,但往往這個函數(shù)也會給系統(tǒng)帶來安全隱患,那么如何讓關(guān)掉這個函數(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.

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

相關(guān)文章

最新評論