채널 > 그누보드&그샵

본문 바로가기

사이트 내 전체검색

뒤로가기 그누보드&그샵

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
}

?>

==========================  소스 끝  ===============

댓글목록 0

등록된 댓글이 없습니다.


Fatal error: Uncaught DivisionByZeroError: Division by zero in /home1/hyusig/public_html/bbs/list.php:116 Stack trace: #0 /home1/hyusig/public_html/bbs/board.php(231): include_once() #1 {main} thrown in /home1/hyusig/public_html/bbs/list.php on line 116