PHP

PHP 에러 출력

dmdkd 2023. 4. 11. 20:53

error_reporting(E_ERROR | E_WARNING | E_PARSE);
; E_ERROR (fatal run-rime errors)
; E_WARNING(run-time warnings (non-fatal errors)
; E_NOTICE (run-time notices)

<?php 
 error_reporting(-1);
 ini_set('display_errors', 1);
?>

 

 

에러 출력하지 않을 때

<?php 
 ini_set('display_errors', 0);
?>

'PHP' 카테고리의 다른 글

str_replace 문자열 변경(치환)  (0) 2023.04.11
Warning:move_uploaded_file 오류  (0) 2023.04.11
[스크랩]class에서 ->(지시자)의 의미  (0) 2023.04.11
리다이렉트  (0) 2023.04.11
Warning: implode(): Invalid arguments passed in  (0) 2023.04.11