초보적인 질문 정보
초보적인 질문본문
-ㅅ- 안녕하세요 초보입니다.
그누보드로 홈페이지제작중에 아주 이상한점이 있어서 질문드립니다.
제 디렉토리 구조는 이렇습니다.
public_html - bbs (그누보드)
v3
v3안에 index파일이 있고 그 파일 상단에
<?
include_once("../bbs/_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.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");
include_once("$g4[path]/lib/latest.lib.php");
?>
이렇게 선언해줬습니다.
경로상으로는 맞는데 v3디렉토리에 있는 인덱스 파일만 열어보면 왜
Warning: main(./common.php) [function.main]: failed to open stream: No such file or directory in /chroot/home/xilytole88/public_html/bbs/_common.php on line 3
Warning: main() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/bbs/_common.php on line 3
Warning: main() [function.main]: open_basedir restriction in effect. File(/head.sub.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 3
Warning: main(/head.sub.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 3
Warning: main() [function.include]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 3
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/outlogin.lib.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 4
Warning: main(/lib/outlogin.lib.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 4
Warning: main() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 4
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/poll.lib.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 5
Warning: main(/lib/poll.lib.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 5
Warning: main() [function.include]: Failed opening '/lib/poll.lib.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 5
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/visit.lib.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 6
Warning: main(/lib/visit.lib.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 6
Warning: main() [function.include]: Failed opening '/lib/visit.lib.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 6
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/connect.lib.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 7
Warning: main(/lib/connect.lib.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 7
Warning: main() [function.include]: Failed opening '/lib/connect.lib.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 7
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/popular.lib.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 8
Warning: main(/lib/popular.lib.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 8
Warning: main() [function.include]: Failed opening '/lib/popular.lib.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 8
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 9
Warning: main(/lib/latest.lib.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 9
Warning: main() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 9
이런 에러가 나올까요?
인덱스파일을 그누보드 폴더에 넣고 하면 에러가 없는데 ㅠㅠ
그누보드로 홈페이지제작중에 아주 이상한점이 있어서 질문드립니다.
제 디렉토리 구조는 이렇습니다.
public_html - bbs (그누보드)
v3
v3안에 index파일이 있고 그 파일 상단에
<?
include_once("../bbs/_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.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");
include_once("$g4[path]/lib/latest.lib.php");
?>
이렇게 선언해줬습니다.
경로상으로는 맞는데 v3디렉토리에 있는 인덱스 파일만 열어보면 왜
Warning: main(./common.php) [function.main]: failed to open stream: No such file or directory in /chroot/home/xilytole88/public_html/bbs/_common.php on line 3
Warning: main() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/bbs/_common.php on line 3
Warning: main() [function.main]: open_basedir restriction in effect. File(/head.sub.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 3
Warning: main(/head.sub.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 3
Warning: main() [function.include]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 3
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/outlogin.lib.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 4
Warning: main(/lib/outlogin.lib.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 4
Warning: main() [function.include]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 4
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/poll.lib.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 5
Warning: main(/lib/poll.lib.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 5
Warning: main() [function.include]: Failed opening '/lib/poll.lib.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 5
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/visit.lib.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 6
Warning: main(/lib/visit.lib.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 6
Warning: main() [function.include]: Failed opening '/lib/visit.lib.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 6
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/connect.lib.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 7
Warning: main(/lib/connect.lib.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 7
Warning: main() [function.include]: Failed opening '/lib/connect.lib.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 7
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/popular.lib.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 8
Warning: main(/lib/popular.lib.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 8
Warning: main() [function.include]: Failed opening '/lib/popular.lib.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 8
Warning: main() [function.main]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp/:.:/home/xilytole88/public_html) in /chroot/home/xilytole88/public_html/v3/index.htm on line 9
Warning: main(/lib/latest.lib.php) [function.main]: failed to open stream: Operation not permitted in /chroot/home/xilytole88/public_html/v3/index.htm on line 9
Warning: main() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php5') in /chroot/home/xilytole88/public_html/v3/index.htm on line 9
이런 에러가 나올까요?
인덱스파일을 그누보드 폴더에 넣고 하면 에러가 없는데 ㅠㅠ
댓글 전체
index.php 에
include_once("../bbs/_common.php");
돼 있으면 bbs/_common.php 에 있는 $g4_path 변수가 사용되어 나오는 오류네요.
v3 디렉토리에 _common.php 를 만드시고
<?
$g4_path = "../bbs";
include_once("$g4_path/common.php");
?>
하신후 index.php 에서
include_once("../bbs/_common.php");
를
include_once("./_common.php");
이렇게 고쳐주세요.
아울러..
v3에 앞으로 이런저런 화일들이 들어간다면
_head.php _tail.php 도 만들어 주시는게 좋겠네요..
include_once("../bbs/_common.php");
돼 있으면 bbs/_common.php 에 있는 $g4_path 변수가 사용되어 나오는 오류네요.
v3 디렉토리에 _common.php 를 만드시고
<?
$g4_path = "../bbs";
include_once("$g4_path/common.php");
?>
하신후 index.php 에서
include_once("../bbs/_common.php");
를
include_once("./_common.php");
이렇게 고쳐주세요.
아울러..
v3에 앞으로 이런저런 화일들이 들어간다면
_head.php _tail.php 도 만들어 주시는게 좋겠네요..
오오오 감사합니다. 한방에 해결됬어요