PHP输出所有的错误报告error_reporting=E_ALL设置
例如不显示警告error_reporting=E_ALL & ~E_WARNING
用PHP函数设置PHP.INI ini_set() 如
ini_set(“error_reporting”,E_ALL)
获取PHP.ini里面的值可以用函数ini_get()
如ini_get(“upload_max_filesize”)
PHP不显示错误报告PHP.ini 里面设置display_errors=off
我们在开发阶段要开启错误报告,运行阶段不要输入任何一种错误报告(用display_errors=Off)
将错误报告写入日志当中去
1:指定输出错误报告error_reproting=E_ALL
2:关闭错误输出display_errors=Off
3:开启错误日志功能 log_errors = On
@默认不指定错误日志位置,则默认写到web服务器的日志中
@为error_log指定一个文件名 (日志存放的地方)
@写入到操作系统日志中的用法是error_log=syslog
Rootexp

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools