http://www.php.net/manual/kr/function.include.php#AEN5149
에서 펐습니다.
include()와 require()는 특별한 언어 구조이기 때문에, 조건절 블록안에 들어가게 된다면, 구문 블록안으로 그들을 완벽하게 막아줘야 한다.
예 11-6. include()와 조건절 블록
<?php
// 잘못된 경우
if ($condition)
include $file;
else
include $other;
// 제대로 쓴 경우
if ($condition) {
include $file;
} else {
include $other;
}
?><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:12:10 PHP & HTML에서 이동 됨]</div>
에서 펐습니다.
include()와 require()는 특별한 언어 구조이기 때문에, 조건절 블록안에 들어가게 된다면, 구문 블록안으로 그들을 완벽하게 막아줘야 한다.
예 11-6. include()와 조건절 블록
<?php
// 잘못된 경우
if ($condition)
include $file;
else
include $other;
// 제대로 쓴 경우
if ($condition) {
include $file;
} else {
include $other;
}
?><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:12:10 PHP & HTML에서 이동 됨]</div>
댓글 7개
게시글 목록
| 번호 | 제목 |
|---|---|
| 11348 |
정규표현식
정규식 표현법
|
| 11346 |
웹서버
리눅스 기본 명령어
1
|
| 11345 |
jQuery
ajax 예제 입니다.
|
| 11336 |
jQuery
jQuery Performance
8
|
| 11332 |
jQuery
jQuery Event - 이벤트에 생명을~
3
|
| 11329 |
jQuery
jQuery Event - bind() 메서드
2
|
| 11326 |
jQuery
jQuery Event - 이벤트 지원 메서드
2
|
| 11324 | |
| 11323 | |
| 11321 | |
| 11320 |
jQuery
jQuery Core
|
| 11319 | |
| 11318 |
jQuery
jQuery Traverse - Filtering
|
| 11317 | |
| 11316 | |
| 11315 | |
| 11314 | |
| 11313 | |
| 11312 | |
| 11311 | |
| 11310 | |
| 11308 | |
| 11304 |
JavaScript
주소표시
3
|
| 20200 |
CSS
CSS 자료 링크
4
|
| 11300 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기