php 지정 경로 에러 문제

php파일안에 경로를 sub/intro/intro_01.php 의 intro_01.php 화면을 불러올려고하는데

<?
include_once("$g4[path]/_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");

$g4['title'] = "";
?>
<? include "top/head.php"; ?>

이렇게 head.php를 불러오는 화면 테스트 중에


Warning: include_once(/_common.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/home/www/sub/intro/intro_01.php on line 2

Warning: include_once() [function.include]: Failed opening '/_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/home/www/sub/intro/intro_01.php on line 2

Warning: include_once(/head.sub.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/home/www/sub/intro/intro_01.php on line 3

Warning: include_once() [function.include]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/home/www/sub/intro/intro_01.php on line 3

Warning: include_once(/lib/outlogin.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/home/www/sub/intro/intro_01.php on line 4

Warning: include_once() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/home/www/sub/intro/intro_01.php on line 4


이런식으로 include_once 부분 전부가 에러가 뜨네요 경로는 맞는거 같은데

어느부분이 잘못되었는지 모르겠습니다.

답변 좀 부탁드리겠습니다.
|

댓글 2개

include_once("./_common.php");
다른 문제였네요 ㅎ
해당 폴더안에 _common.php 파일이 없었네요 ^^
답변 감사합니다. 채택해드릴게요
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
13년 전 조회 1,515
13년 전 조회 6,545
13년 전 조회 2,951
13년 전 조회 1,170
13년 전 조회 1,656
13년 전 조회 1,472
13년 전 조회 1,520
13년 전 조회 1,580
13년 전 조회 2,944
13년 전 조회 1,860
13년 전 조회 1,612
13년 전 조회 1,456
13년 전 조회 1,742
13년 전 조회 1,412
13년 전 조회 3,746
13년 전 조회 1,303
13년 전 조회 1,995
13년 전 조회 1,538
13년 전 조회 1,255
13년 전 조회 2,544
🐛 버그신고