경로문제 같은데 정말 모르겠습니다... 정보
경로문제 같은데 정말 모르겠습니다...본문
참으로 알수가 없어요...ㅜ.ㅜ
top.html에 회원 로그인 상태를 보여줘야 하기에
<?
include_once("../board/_common_sub_main.php");
include_once("$g4[path]/head.sub.php");
?>
위와 같이 include를 했습니다.
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");
?>
<?
$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(../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만 에러가 나는건지..
이유를 모르겠습니다...ㅡ.ㅡ
회원가입화면에서 오류가 나요...
현재 head.php와 sub_head.php파일 두개를 쓰고 있는데 sub_head.php는 게시판에서 사용되는 파일입니다.
완전히 똑같은 소스인데 왜 head.php만 에러가 나는건지..
이유를 모르겠습니다...ㅡ.ㅡ
댓글 전체
$g4[path] 밑에 bbs가 있다면 아래 처럼
<?
include_once("$g4[path]/board/_common_sub_main.php");
include_once("$g4[path]/head.sub.php");
?>
<?
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");
?>
_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 명령어가 들어가 있는것 같은데.
왜 top.html 확장자가 html 이신가요...???
소스에는 php 명령어가 들어가 있는것 같은데.
아파치 설정에 따라 가능합니다.