PHP 오류 중복 제거하기

오류 파일에서 동일한 오류가 여러 번 반복되는 것은 매우 불편할 수 있습니다. 오류 중복이 파일에 기록되지 않도록 할 수 있습니다.

이렇게 해봅시다:

php<?php
  ini_set('display_errors', 'off');
  ini_set('log_errors', 'on');
  ini_set('error_log', 'logs/errors.log');
  
  ini_set('ignore_repeated_errors', 'on');
  ini_set('ignore_repeated_source', 'on');
  
  echo $test;
?>
Задание 1

오류 중복이 파일에 저장되지 않도록 설정하세요. 모든 것이 작동하는지 확인하세요.