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

참으로 알수가 없어요...ㅜ.ㅜ
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,757
19년 전 조회 1,545
19년 전 조회 1,320
19년 전 조회 1,538
19년 전 조회 2,029
19년 전 조회 1,263
19년 전 조회 1,183
19년 전 조회 1,530
19년 전 조회 1,108
19년 전 조회 1,075
19년 전 조회 1,536
19년 전 조회 1,610
19년 전 조회 1,534
19년 전 조회 1,535
19년 전 조회 1,545
19년 전 조회 1,040
19년 전 조회 995
19년 전 조회 1,218
19년 전 조회 1,539
19년 전 조회 1,547