게시판폴더의 하위폴더에 문서를 작성하는 방법좀 알려주세요. 정보
게시판폴더의 하위폴더에 문서를 작성하는 방법좀 알려주세요.본문
예를 들어 질문하면..
http://홈주소/그누4/문서폴더/문서.php
표를 작성해서 문서폴더/문서.php로 업로드
호출하면 표만 뜹니다.
여기에 head와 tail을 붙여줄려면 어떻게 해야하나요?
일반적인 방법으로 하면 하위폴더라서 그런지 _common파일 호출에 문제가 생기더라구요.
저는 아래의 방법으로 호출했거든요. 맞는 방법인지요?
http://홈주소/그누4/문서폴더/_common.php 작성
내용 :
<?
$g4_path = "..";
include_once ("$g4_path/common.php");
include_once("$g4[admin_path]/admin.lib.php");
?>
http://홈주소/그누4/문서폴더/문서.php 작성
내용:
<?
include_once("./_common.php");
$g4[title] = "표";
include_once("../_head.php");
?>
문서 내용
<?
include_once("../_tail.php");
?>
http://홈주소/그누4/문서폴더/문서.php
표를 작성해서 문서폴더/문서.php로 업로드
호출하면 표만 뜹니다.
여기에 head와 tail을 붙여줄려면 어떻게 해야하나요?
일반적인 방법으로 하면 하위폴더라서 그런지 _common파일 호출에 문제가 생기더라구요.
저는 아래의 방법으로 호출했거든요. 맞는 방법인지요?
http://홈주소/그누4/문서폴더/_common.php 작성
내용 :
<?
$g4_path = "..";
include_once ("$g4_path/common.php");
include_once("$g4[admin_path]/admin.lib.php");
?>
http://홈주소/그누4/문서폴더/문서.php 작성
내용:
<?
include_once("./_common.php");
$g4[title] = "표";
include_once("../_head.php");
?>
문서 내용
<?
include_once("../_tail.php");
?>
댓글 전체
맞는 것 같은데...
먼저 해 보시고 문제있으면 질문해 주세요..
먼저 해 보시고 문제있으면 질문해 주세요..
맞습니다;