解析如何屏蔽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)文章
PHP實現(xiàn)的統(tǒng)計數(shù)據(jù)功能詳解
這篇文章主要介紹了PHP實現(xiàn)的統(tǒng)計數(shù)據(jù)功能,結(jié)合實例形式分析了php數(shù)據(jù)查詢與顯示處理的相關(guān)操作技巧,需要的朋友可以參考下2016-12-12PHP實現(xiàn)的創(chuàng)建帶logo圖標二維碼生成類詳解
這篇文章主要介紹了PHP實現(xiàn)的創(chuàng)建帶logo圖標二維碼生成類,結(jié)合實例形式分析了可生成帶logo的二維碼工具類PHPQRCode.class.php相關(guān)參數(shù)、功能與使用技巧,需要的朋友可以參考下2018-07-07