Skip to content

Commit 0474f42

Browse files
author
hellowords
committed
php中对错误报告与日志的处理
1 parent d629168 commit 0474f42

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

1214/demo.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
/*
3+
* 在p程序运行阶段时间,不能显示错误报告,在php.ini中显示
4+
* 可以制定错误报告的显示级别,和错误报告的显示位置。
5+
* log_error = On // 开启错误日志功能!
6+
* error_log /home/hiwud/error.log //这就是指定错误日志的地方
7+
* 如果不制定位置,默认写到web服务器的日志中去啦!
8+
*/
9+
echo '<h1><center>关于错误报告的一些要领</center></h1>';

0 commit comments

Comments
 (0)