[PHP] .htaccess error_reporting

2020. 7. 20. 13:44개발자료/Web


반응형

2020/07/16 - [개발/Web] - [PHP] .htaccess short_open_tag 설정

 

[PHP] .htaccess short_open_tag 설정

# short_open_tag=On|Off php_value short_open_tag 0 php_value short_open_tag 1

wonyoung2.tistory.com

# error_reporting 설정

php_value error_reporting 22519

E_ALL & ~E_STRICT & ~E_NOTICE & ~E_DEPRECATED
E_ALL(32767) – E_STRICT(2048) – E_NOTICE(8) – E_DEPRECATED(8192) = 22519

 

# 에러 레벨 상수값

Error Level Constants
E_ERROR 1
E_WARNING
2
E_PARSE 4
E_NOTICE 8
E_CORE_ERROR 16
E_CORE_WARNING 32
E_COMPILE_ERROR 64
E_COMPILE_WARNING 128
E_USER_ERROR 256
E_USER_WARNING 512
E_USER_NOTICE 1024
E_STRICT 2048
E_RECOVERABLE_ERROR 4096
E_DEPRECATED 8192
E_USER_DEPRECATED 16384
E_ALL 32767

 

# 쉽게 계산 하는법

PHP Error Reporting Level Calculator 웹사이트를 이용해서 계산

https://maximivanov.github.io/php-error-reporting-calculator/

 

PHP Error Reporting Level/Bitmask Calculator

PHP has many levels of errors which are represented by constants (numbers). Constants build up a bitmask that specifies which errors to report. This tool will help you: calculate error reporting level by picking individual error constants see which constan

maximivanov.github.io

 

반응형

'개발자료 > Web' 카테고리의 다른 글

[PHP] hasPrefix 구현하기  (0) 2021.04.13
[Javascript] UIWebView, WKWebView 구분  (0) 2020.11.04
[PHP] .htaccess short_open_tag 설정  (0) 2020.07.16
[PHP] SQLite3 Escape String  (0) 2020.07.15
[PHP] Base64 Image 파일로 변경하기  (0) 2020.07.14