教程集 www.jiaochengji.com
教程集 >  脚本编程  >  php  >  正文 php不显示warning方法

php不显示warning方法

发布时间:2020-08-26   编辑:jiaochengji.com
教程集为您提供php不显示warning方法等资源,欢迎您收藏本站,我们将为您提供最新的php不显示warning方法资源
运行程序时出现了warning警告,想要把它屏蔽掉

关闭php的warning提示的方法:

方法一: (推荐学习:PHP视频教程)

修改php.ini文件中的下列属性

display_errors = Off
error_reporting = E_ALL

方法二:

在php文件开头写入:

<?php
      error_reporting(0);
?>

以上就是php不显示warning方法的详细内容,更多请关注教程集其它相关文章!

  • 本文原创发布教程集,转载请注明出处,感谢您的尊重!
  • 您可能感兴趣的文章:
    php不显示warning方法
    php提示Call-time pass-by-reference has been deprecated错误
    php提示Warning: file_get_contents(): couldn’t resolve
    Warning: session_start() [function.session-start]
    PHP出现Warning: scandir()问题的解决方法
    教你开启PHP的error_log日志的方法
    分析PHP错误处理(核心特性)
    Warning: mssql_connect() [function.mssql-connect]:
    hp函数setcookie()报错:Warning: Cannot modify header
    详解PHP中include与require的用法区别

    [关闭]
    ~ ~