인클루드문제 ㅠㅠ 정보
인클루드문제 ㅠㅠ
본문
자체적으로 calendar를 하나 만들었습니다.
그누보드랑 상관이 없이
head파일을 인클루드 시켜서 상단화면을 디자인 하려니 인클루드가 되지 않네요 ㅠㅠ
/head.sub.php ./head.sub.php ../head.sub.php /../head.sub.php
별짓을다해도 안되네요 고수분들 조언 부탁 드립니다.
그리고 DB에 있는 데이터를 가지고 와서 달력에 뿌려 줄려는데 그누보드에 DB연결파일도 좀 부탁드립니다. 감사합니다.
참고로 /calendar/calendar.php 고 그누보드는 루트에 풀어 놨습니다.
그누보드랑 상관이 없이
head파일을 인클루드 시켜서 상단화면을 디자인 하려니 인클루드가 되지 않네요 ㅠㅠ
/head.sub.php ./head.sub.php ../head.sub.php /../head.sub.php
별짓을다해도 안되네요 고수분들 조언 부탁 드립니다.
그리고 DB에 있는 데이터를 가지고 와서 달력에 뿌려 줄려는데 그누보드에 DB연결파일도 좀 부탁드립니다. 감사합니다.
참고로 /calendar/calendar.php 고 그누보드는 루트에 풀어 놨습니다.
댓글 전체
calendar폴더에 파일을 3개 생성합니다.
1.
_common.php
<?
$g4_path = ".."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
2.
_head.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.php");
?>
3.
_tail.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/tail.php");
?>
4. calendar.php 파일 최상단에
<?
include_once("./_common.php");
include_once("./_head.php");
?>
내용
<?
include_once("./_tail.php");
?>
1.
_common.php
<?
$g4_path = ".."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
2.
_head.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.php");
?>
3.
_tail.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/tail.php");
?>
4. calendar.php 파일 최상단에
<?
include_once("./_common.php");
include_once("./_head.php");
?>
내용
<?
include_once("./_tail.php");
?>