서브메뉴를 폴더를 만들어서 페이지를 넣을때 경로문제입니다. 정보
서브메뉴를 폴더를 만들어서 페이지를 넣을때 경로문제입니다.
본문
질문을 한 원본이 바로 밑에꺼구요.
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=118044&cwin=&page=&sca=&sfl=&stx=&spt=0
아래와 같이 질문을 드렸습니다.
아래와 같이 뜹니다. common 경로를 ../_common.php 로 해줘도 안되네요 ;;
그래서 폴더로 _common.php을 복사해와도 안되구요.
서브페이지 상단에는
<?
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
define("_INDEX_", TRUE);
//$g4[title] = "";
//include_once("$g4[path]/head.php");
?>
이렇게 넣어줬거든요...
아시는 분 도움좀 부탁드리겠습니다.
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/mirzio2007/www/about/02.html on line 2
Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mirzio2007/www/about/02.html on line 2
Warning: include_once(/lib/outlogin.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/mirzio2007/www/about/02.html on line 3
Warning: include_once() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mirzio2007/www/about/02.html on line 3
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/mirzio2007/www/about/02.html on line 4
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mirzio2007/www/about/02.html on line 4
그랬더니 아래와 같이 답변을 주셨거든요.
$g4_path="..";
include_once "$g4_path/common.php";
처럼 호출하세요~
그래서 아래와 같이 바꿨습니다.
<?
$g4_path="..";
include_once "$g4_path/common.php";
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
define("_INDEX_", TRUE);
//$g4[title] = "";
//include_once("$g4[path]/head.php");
?>
이렇게 바꿔줬더니 "g4_path 변수가 선언되지 않았습니다. js/werst.js" 이렇게 메세지가 뜨네요
경로가 /main/index.html 여기에 html파일을 만들어서 위에 소스를 넣어준거거든요.
너무 초보적인거 같은데 답답하네요. 아시는 분들 좀 도와주세요.
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=118044&cwin=&page=&sca=&sfl=&stx=&spt=0
아래와 같이 질문을 드렸습니다.
아래와 같이 뜹니다. common 경로를 ../_common.php 로 해줘도 안되네요 ;;
그래서 폴더로 _common.php을 복사해와도 안되구요.
서브페이지 상단에는
<?
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
define("_INDEX_", TRUE);
//$g4[title] = "";
//include_once("$g4[path]/head.php");
?>
이렇게 넣어줬거든요...
아시는 분 도움좀 부탁드리겠습니다.
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/mirzio2007/www/about/02.html on line 2
Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mirzio2007/www/about/02.html on line 2
Warning: include_once(/lib/outlogin.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/mirzio2007/www/about/02.html on line 3
Warning: include_once() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mirzio2007/www/about/02.html on line 3
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/mirzio2007/www/about/02.html on line 4
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mirzio2007/www/about/02.html on line 4
그랬더니 아래와 같이 답변을 주셨거든요.
$g4_path="..";
include_once "$g4_path/common.php";
처럼 호출하세요~
그래서 아래와 같이 바꿨습니다.
<?
$g4_path="..";
include_once "$g4_path/common.php";
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
define("_INDEX_", TRUE);
//$g4[title] = "";
//include_once("$g4[path]/head.php");
?>
이렇게 바꿔줬더니 "g4_path 변수가 선언되지 않았습니다. js/werst.js" 이렇게 메세지가 뜨네요
경로가 /main/index.html 여기에 html파일을 만들어서 위에 소스를 넣어준거거든요.
너무 초보적인거 같은데 답답하네요. 아시는 분들 좀 도와주세요.
댓글 전체

저도 같은 문제때문에 검색 무척 열심히 했습니다 결론은 해결했어요.
http://sir.co.kr/bbs/tb.php/g4_qa/107779/4d32d75fc3244f0278cc64d993215857
윗글 보구요.
http://sir.co.kr/bbs/tb.php/g4_qa/107779/4d32d75fc3244f0278cc64d993215857
윗글 보구요.