[ERROR] Parse error: syntax error, unexpected end of file in

gyrud02·2022년 1월 18일
0

오류(ERROR)

목록 보기
7/27
Parse error: syntax error, unexpected end of file in

출처: https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=fageapp&logNo=221155879875

보통은 숫자가 맞지 않아서 발생하는 경우가 많지만 { }를 맞춰도 오류 해결에 안 될 경우, 짧은 태그를 허용해줘야 한다.

  • php.ini 파일에서 short_open_tag=Off를 On으로 변경해준다.
; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It is
; generally recommended that <?php and ?> should be used and that this feature
; should be disabled, as enabling it may result in issues when generating XML
; documents, however this remains supported for backward compatibility reasons.
; Note that this directive does not control the <?= shorthand tag, which can be
; used regardless of this directive.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag=Off // => On으로 변경해준다.
profile
Back-End Engineer

0개의 댓글