Warning: Use of undefined constant G5_TIMEZONE - assumed 'G5_TIMEZONE' 정보
Warning: Use of undefined constant G5_TIMEZONE - assumed 'G5_TIMEZONE'관련링크
본문
php 7.2 서버에서 오류 발생
Warning: Use of undefined constant G5_TIMEZONE - assumed 'G5_TIMEZONE' (this will throw an Error in a future version of PHP) in /home/happyjung/www/common.php on line 142
142 라인의 내용은 다음과 같습니다.
if (defined(G5_TIMEZONE)) sql_query(" set time_zone = '".G5_TIMEZONE."'");
를 아래와 같이 변경합니다.
if (defined('G5_TIMEZONE')) sql_query(" set time_zone = '".G5_TIMEZONE."'");
추천
1
1
댓글 3개
좋은 팁 감사합니다 ^^
덕분에 에러를 잡았습니다. 고맙습니다.
에러 수정