최신 그누보드 php 문법 에러?

최신 그누보드 php 문법 에러?

QA

최신 그누보드 php 문법 에러?

본문

1654207058_1636332831.8469.png

 

 

php 문 마지막을 ?> 닫아야 하는데 일부러 안 닫으신건가요??

Tail.php 에 그런 현상이 많이 보이네요.

이 질문에 댓글 쓰기 :

답변 3

문법 오류 아닙니다.

 

+ Instruction separation (명령 구분)

 

- https://www.php.net/manual/en/language.basic-syntax.instruction-separation.php
Note:

The closing tag of a PHP block at the end of a file is optional, and in some cases omitting it is helpful when using include or require, so unwanted whitespace will not occur at the end of files, and you will still be able to add headers to the response later. It is also handy if you use output buffering, and would not like to see added unwanted whitespace at the end of the parts generated by the included files.

 

- http://docs.php.net/manual/kr/language.basic-syntax.instruction-separation.php

Note:

파일의 마지막에서 PHP 블록의 닫기 태그를 생략할 수 있으며, 때로는 유용합니다. include나 require를 사용할 경우, 원하지 않은 공백이 파일 마지막에 들어가지 않게 함으로써, 나중에 추가 응답 헤더를 추가할 수 있습니다. 또한 출력 버퍼링을 사용할 경우에도 포함한 파일들에 의해서 각 파트의 마지막에 원하지 않은 공백을 피할 수 있으므로 도움이 됩니다.

답변을 작성하시기 전에 로그인 해주세요.
전체 125,873 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT