태

질문..

· 2012-02-16 (목) 17:13:07 · 1072 · 2
최상의 폴더의 index.php 에서 <?php include '/home/index.php'; ?> 이렇게하면...

Warning: include(/home/index.php) [function.include]: failed to open stream: No such file or directory in /WEB/torrent/html/index.php on line 2

Warning: include() [function.include]: Failed opening '/home/index.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /WEB/torrent/html/index.php on line 2


이렇게 뜨는데...

따른 설정을 해 주어야 하나요?
|

댓글 2개

/home/index.php 이렇게 한다면 절대경로기 때문에 리눅스 상의 /home디렉토리 하위의 index.php
를 찾습니다

/home 하위는 보통 유저 아이디나 디랙토리가 존제 하기때문에 아마 저 인덱스 페이지가 없을껄로 보입니다

$_SERVER['DOCUMENT_ROOT']."/index.php" 이런식으로 한번 해보시죠 아니면 해당 파일의 상대경로로 지정하시거나
<?php include '/home/index.php'; ?> 처럼 사용하고자 하신다면
상대경로 : <?php include './home/index.php'; ?>
절대경로 : <?php include '/WEB/torrent/html/home/index.php'; ?>
2가지 방법중에서 상대경로를 사용하실것을 권합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
12-02-16 조회 1,056
12-02-16 조회 1,330
12-02-16 조회 1,644
12-02-16 조회 1,091
12-02-16 조회 1,073
12-02-16 조회 1,630
12-02-16 조회 2,106
12-02-16 조회 1,087
12-02-16 조회 1,649
12-02-16 조회 1,702
12-02-16 조회 1,653
12-02-16 조회 1,686
12-02-16 조회 918
12-02-16 조회 1,395
12-02-16 조회 1,164
12-02-16 조회 1,641
12-02-16 조회 1,937
12-02-16 조회 1,066
12-02-16 조회 1,636
12-02-16 조회 1.5만