G4 채널
페이지 정보
본문
방법은 의외로 간단하다.
단 하나의 파일만 만들면 된다.
index.html을 만들어 아래 소스로 저장하면 끝.
푸하하하하~~~~!
================== 소스시작 ==========================
<?
switch($p) // p는 물음표 뒤에 붙이는 문자.
{
//스타일만 적용할 경우
case "comm_":
include "common.php";//반드시 들어가야 함
include "head.sub.php";
include "html/comm.php";//실제로 불러올 파일
include "tail.sub.php";
break;
//상,하단 파일도 적용할 경우
case "comm":
include "common.php";//반드시 들어가야 함
include "head.sub.php";
include "head.php";
include "html/comm.php";//실제로 불러올 파일
include "tail.php";
include "tail.sub.php";
break;
case "pds":
include "common.php";//반드시 들어가야 함
include "head.sub.php";
include "head.php";
include "html/pds.php";//실제로 불러올 파일
include "tail.php";
include "tail.sub.php";
break;
case "dabsa":
include "common.php";//반드시 들어가야 함
include "head.sub.php";
include "head.php";
include "html/dabsa.php";//실제로 불러올 파일
include "tail.php";
include "tail.sub.php";
break;
default:
include "index.php"; // index
}
?>
========================== 소스 끝 ===============
단 하나의 파일만 만들면 된다.
index.html을 만들어 아래 소스로 저장하면 끝.
푸하하하하~~~~!
================== 소스시작 ==========================
<?
switch($p) // p는 물음표 뒤에 붙이는 문자.
{
//스타일만 적용할 경우
case "comm_":
include "common.php";//반드시 들어가야 함
include "head.sub.php";
include "html/comm.php";//실제로 불러올 파일
include "tail.sub.php";
break;
//상,하단 파일도 적용할 경우
case "comm":
include "common.php";//반드시 들어가야 함
include "head.sub.php";
include "head.php";
include "html/comm.php";//실제로 불러올 파일
include "tail.php";
include "tail.sub.php";
break;
case "pds":
include "common.php";//반드시 들어가야 함
include "head.sub.php";
include "head.php";
include "html/pds.php";//실제로 불러올 파일
include "tail.php";
include "tail.sub.php";
break;
case "dabsa":
include "common.php";//반드시 들어가야 함
include "head.sub.php";
include "head.php";
include "html/dabsa.php";//실제로 불러올 파일
include "tail.php";
include "tail.sub.php";
break;
default:
include "index.php"; // index
}
?>
========================== 소스 끝 ===============
댓글목록
등록된 댓글이 없습니다.