Home >php教程 >php手册 >笔记:php有那几种错误提示和查错方法,php错误提示

笔记:php有那几种错误提示和查错方法,php错误提示

WBOY
WBOYOriginal
2016-06-13 08:58:271047browse

笔记:php有那几种错误提示和查错方法,php错误提示

php有哪几种错误提示

1.notice : 注意

2.waring : 警告

3.error : 错误

PHP中都有哪几种查错方法?

1、语法检查--php配置文件里,把错误显示选项都打开或者代码开始部分,加error_reporting(E_ALL)
2、逻辑检查--设置断点,在断点前写日志 error_logs($message);exit();
3、HTTP调试--用抓包工具或者firebugs工具跟踪代码运行的全过程

Statement:
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