경로문제 같은데 정말 모르겠습니다...

참으로 알수가 없어요...ㅜ.ㅜ
top.html에 회원 로그인 상태를 보여줘야 하기에
<?
include_once("../board/_common_sub_main.php");
include_once("$g4[path]/head.sub.php");
?>
위와 같이 include를 했습니다.
_common_sub_main.php에는 아래와 같은 소스구요..
<?
$g4_path = "../board";
include_once("$g4_path/common.php");
?>
근데 이런 에러가 납니다...
Warning: main(../board/_common_sub_main.php): failed to open stream: No such file or directory in /inc/top.html on line 2
Warning: main(): Failed opening '../board/_common_sub_main.php' for inclusion (include_path='.:/usr/local/lib/php') in /inc/top.html on line 2
다른페이지들은 다 이상없이 잘 되는데
회원가입화면에서 오류가 나요...
현재 head.php와 sub_head.php파일 두개를 쓰고 있는데 sub_head.php는 게시판에서 사용되는 파일입니다.
완전히 똑같은 소스인데 왜 head.php만 에러가 나는건지..
이유를 모르겠습니다...ㅡ.ㅡ
 
|

댓글 5개

$g4[path] 밑에 bbs가 있다면 아래 처럼
<?
include_once("$g4[path]/board/_common_sub_main.php");
include_once("$g4[path]/head.sub.php");
?>
그럼 다른페이지두 다 에러나구 회원가입두 마찬가지 입니다...
top.html하고 _common_sub_main.php하고 같은 디렉터리에 있다면

_common_sub_main.php
<?
$g4_path = "../board";
include_once("$g4_path/common.php");
?>

top.html
<?
include_once("./_common_sub_main.php");
include_once("$g4[path]/head.sub.php");
?>
궁금해서 물어봅니다.

왜 top.html 확장자가 html 이신가요...???

소스에는 php 명령어가 들어가 있는것 같은데.
아파치 설정에 따라 가능합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
19년 전 조회 1,739
19년 전 조회 1,526
19년 전 조회 1,302
19년 전 조회 1,523
19년 전 조회 2,006
19년 전 조회 1,247
19년 전 조회 1,162
19년 전 조회 1,514
19년 전 조회 1,093
19년 전 조회 1,056
19년 전 조회 1,518
19년 전 조회 1,591
19년 전 조회 1,514
19년 전 조회 1,520
19년 전 조회 1,523
19년 전 조회 1,022
19년 전 조회 977
19년 전 조회 1,197
19년 전 조회 1,523
19년 전 조회 1,532