(this will throw an Error in a future version of PHP) 해결법 아시는분 있나요?
본문
https://sir.kr/g5_tip/11861#c_17229
이거대로 게시판을 수정했는데 다 좋은데
게시판 상단에
Warning: Use of undefined constant mb_id - assumed 'mb_id' (this will throw an Error in a future version of PHP) in /www_root/bbs/list.php on line 65
Warning: Use of undefined constant mb_id - assumed 'mb_id' (this will throw an Error in a future version of PHP) in /www_root/bbs/list.php on line 192
이런식으로 뜨는데 해결방법이 있나요?
인터넷 검색하니까
"https://samson32.com/entry/this-will-throw-an-Error-in-a-future-version-of-PHP-%EC%97%90%EB%9F%AC-%ED%95%B4%EA%B2%B0%EB%B2%95"
이런식으로 변경하라는데
수정전:
define(__INCLUDE_CONFIG_PHP,"TRUE");
수정후:
define('__INCLUDE_CONFIG_PHP',"TRUE");
무슨 뜻인지를 몰르겠네요...
답변 1
배열키나 상수명을 작은따옴표로 감싸라는 의미.
(예) $mb[id] ---> $mb['id']
(예) define(mb, 'id') --> define('mb_id', 'id')
답변을 작성하시기 전에 로그인 해주세요.