인클루드 질문입니다 정보
인클루드 질문입니다본문
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in C:\APM_Setup\htdocs\sub\introduction\hello.html on line 2
hello.html 맨 상당부분
hello.html 있는 위치 : sub\introduction\hello.html
hello.html 맨 상당부분
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = ":: 헬로우 ::";
include_once("./_head.php");
?>
이렇게 해서 맨 상당의 헤드 부분을 컴온이랑 같이 다 붙이려고 하는데 index에서는 정상 작동하는데
여기서 붙이려니 안되네요 어떻게 해야하나요?
hello.html 맨 상당부분
hello.html 있는 위치 : sub\introduction\hello.html
hello.html 맨 상당부분
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = ":: 헬로우 ::";
include_once("./_head.php");
?>
이렇게 해서 맨 상당의 헤드 부분을 컴온이랑 같이 다 붙이려고 하는데 index에서는 정상 작동하는데
여기서 붙이려니 안되네요 어떻게 해야하나요?
댓글 전체
introduction 폴더에 bbs 폴더에 있는 _common.php 를 복사하세요.
다른방법은 없는건가요?
복사를 하게 되면 나중에 관리가 힘들어져서요
복사를 하게 되면 나중에 관리가 힘들어져서요
include_once("./_common.php"); 대신 bbs/_common.php 안의 내용을 넣던가요 ㅡㅡ;
복사를 하게 되면 나중에 관리가 힘들어져서요 <--- 관리하기 쉽게하기 위해서 그렇게 만든겁니다
새로운 폴더를 만들고 그 폴더에서 그누와 연관되는 화일을 호출하기 위해서는 항상 _common.php를 복사해 넣는다고 생각하면 됩니다
새로운 폴더를 만들고 그 폴더에서 그누와 연관되는 화일을 호출하기 위해서는 항상 _common.php를 복사해 넣는다고 생각하면 됩니다