我們配置php環(huán)境的時(shí)候往往都會(huì)寫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.
新聞熱點(diǎn)
疑難解答