Home > php教程 > php手册 > body text

AppServ,XAMPP,WAMP配置php.ini去掉警告信息(NOTICE)

WBOY
Release: 2016-06-06 19:52:07
Original
845 people have browsed it

AppServ,XAMPP,WAMP都是集成了apache,mysql,php的套装,使用起来比较方便,就不需要再去一个个的配置php,apache和mysql。 下载相应的安装包进行安装,不过对于php项目来说,WAMP会默认显示NOTICE信息,页面上一大段一大段的,比较难看。怎么去掉这些警告

AppServ,XAMPP,WAMP都是集成了apache,mysql,php的套装,使用起来比较方便,就不需要再去一个个的配置php,apache和mysql。

  下载相应的安装包进行安装,不过对于php项目来说,WAMP会默认显示NOTICE信息,页面上一大段一大段的,比较难看。怎么去掉这些警告信息呢?先找到php.ini文件。

其路径是:(我的安装路径是D:\wamp)D:\wamp\bin\php\php5.3.10\php.ini ,打开该文件。

在文件中搜索,error_reporting = E_ALL ,这是默认值,然后改成:error_reporting = E_ALL&~E_NOTICE,接着重启apache服务器就ok了。

这个是针对php新手而言,虽然我也是个菜鸟,不过现在终于知道怎么去掉警告信息了。

相应的,XAMPP,AppServ等套装,也是通过修改php,ini来去除警告信息,大家可以举一反三。

Related labels:
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!