"PHP error reporting()"의 두 판 사이의 차이

(새 문서: ==개요== ;PHP error_reporting() *오류 보고 수준을 설정하는 PHP 함수 ==예시== ;오류 출력 끄기 <source lang='php'> error_reporting(0); </source> ;모든 오류...)
 
37번째 줄: 37번째 줄:


==참고 자료==
==참고 자료==
*http://php.net/manual/kr/function.error-reporting.php
*http://php.net/manual/en/function.error-reporting.php
*http://php.net/manual/kr/errorfunc.configuration.php#ini.error-reporting
*http://php.net/manual/en/errorfunc.configuration.php#ini.error-reporting


[[분류: PHP 오류]]
[[분류: PHP 오류]]

2015년 7월 15일 (수) 16:34 판

1 개요

PHP error_reporting()
  • 오류 보고 수준을 설정하는 PHP 함수

2 예시

오류 출력 끄기
error_reporting(0);
모든 오류 보기
error_reporting(E_ALL);
error_reporting(E_ALL);
error_reporting(-1);
ini_set('error_reporting', E_ALL);
E_NOTICE를 제외한 모든 오류 보기
error_reporting(E_ALL & ~E_NOTICE);
E_ERROR, E_WARNING 보기
error_reporting(E_ERROR | E_WARNING);

3 같이 보기

4 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}