[PHP] 에러 출력하기

간단하게 PHP 에러를 화면에 출력해주는 코드 (구 버전 사용시 마지막 줄 제거)

error_reporting(E_ERROR | E_WARNING);
ini_set('display_errors', '1');
ini_set('error_prepend_string', '<pre style="white-space: pre-wrap;">');

Leave a Comment