php报错:Warning: Phpinfo() Has Been Disabled For Security Reasons

WBOY
Release: 2016-06-23 13:30:08
Original
1202 people have browsed it

今天想使用phpinfo函数查看一下服务器上php的相关信息的时候,报了如下错误:

Warning: phpinfo() has been disabled for security reasons

(出于安全考虑,禁用了phpinfo函数)


这是第一次碰到这种错误,那么如何重新启用phpinfo函数呢?

很简单:

找到php的配置文件php.ini,将phpinfo函数从disable_functions 中移除再重启服务器即可。

版权声明:本文为博主原创文章,未经博主允许不得转载。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template