급해서 여기 올렸습니다.. 정보
급해서 여기 올렸습니다..
본문
포인트가 500뿐이라서..ㅠ.ㅠ
html(최상위)에 그누설치했서 홈피 만들고
다른 홈피가 필요해서
하위에 다른 폴더(gnu2) 만들어서
index파일과 images파일만 올린상태입니다..
그런데 여기서 index에 어떤 명령어와 gnu2폴더 않에 어떤 파일일을 넣어줘야
최근게시물과 갤러리 로그인이 출력되나요..
꼭 좀 답변 부탁해요..
html(최상위)에 그누설치했서 홈피 만들고
다른 홈피가 필요해서
하위에 다른 폴더(gnu2) 만들어서
index파일과 images파일만 올린상태입니다..
그런데 여기서 index에 어떤 명령어와 gnu2폴더 않에 어떤 파일일을 넣어줘야
최근게시물과 갤러리 로그인이 출력되나요..
꼭 좀 답변 부탁해요..
추천
0
0
댓글 9개

질답란에서
탈디렉토리 관련으로 검색하시면 나올거예요 ~
탈디렉토리 관련으로 검색하시면 나올거예요 ~

감사합니다..꾸벅

없는데요 도저히 못찾겠어요.ㅠㅠ.

아래부분을어떻게 처리해야 될까요..고수님들 알려주세요..ㅠ.ㅠ
html최상위에 설치되서 지금 잘 돌아가는 index파일입니다.
하위폴더를 한개 더 만들을때 index파일에 저렇게 넣으니깐..
에러가 나는데 어떻게 써야 인식되나요..php초보라 어렵네요...
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/latest.num.lib.php");
$g4['title'] = "";
include_once("./_head.php");
// 게시판 이름 구하기
// 오누리 빌더 1.3 포함
?>
<html>
<head>
html최상위에 설치되서 지금 잘 돌아가는 index파일입니다.
하위폴더를 한개 더 만들을때 index파일에 저렇게 넣으니깐..
에러가 나는데 어떻게 써야 인식되나요..php초보라 어렵네요...
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/latest.num.lib.php");
$g4['title'] = "";
include_once("./_head.php");
// 게시판 이름 구하기
// 오누리 빌더 1.3 포함
?>
<html>
<head>

/html/
원본그누가 여기에 있고
/html/gnu2/index.php
새로 만드는게 여기라면
./가 아니라 ../로 하셔야 합니다.
원본그누가 여기에 있고
/html/gnu2/index.php
새로 만드는게 여기라면
./가 아니라 ../로 하셔야 합니다.

html상단에 말한대로 고쳤더니
<?
include_once("../_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/latest.num.lib.php");
$g4['title'] = "";
include_once("../_head.php");
?>
아래와 같이 메시지 멀대 수정해야죠.? 꼭 좀 알려주세요..
----------------------------------------------------------
Warning: include_once(./common.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/wgma/html/_common.php on line 3
Warning: include_once() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/share/pear') in /web/home/wgma/html/_common.php on line 3
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/wgma/html/bedethda/index.html on line 3
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/share/pear') in /web/home/wgma/html/bedethda/index.html on line 3
Warning: include_once(/lib/latest.num.lib.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/wgma/html/bedethda/index.html on line 4
Warning: include_once() [function.include]: Failed opening '/lib/latest.num.lib.php' for inclusion (include_path='.:/usr/share/pear') in /web/home/wgma/html/bedethda/index.html on line 4
--------------------------------
<?
include_once("../_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/latest.num.lib.php");
$g4['title'] = "";
include_once("../_head.php");
?>
아래와 같이 메시지 멀대 수정해야죠.? 꼭 좀 알려주세요..
----------------------------------------------------------
Warning: include_once(./common.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/wgma/html/_common.php on line 3
Warning: include_once() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/share/pear') in /web/home/wgma/html/_common.php on line 3
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/wgma/html/bedethda/index.html on line 3
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/share/pear') in /web/home/wgma/html/bedethda/index.html on line 3
Warning: include_once(/lib/latest.num.lib.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/wgma/html/bedethda/index.html on line 4
Warning: include_once() [function.include]: Failed opening '/lib/latest.num.lib.php' for inclusion (include_path='.:/usr/share/pear') in /web/home/wgma/html/bedethda/index.html on line 4
--------------------------------

다시 원래대로 바꿔놓고 gnu2폴더에
_common.php
<?
$g4_path = ".."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
_head.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.php");
?>
이 파일 두개 만들어 놓으세요.
_common.php
<?
$g4_path = ".."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
_head.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.php");
?>
이 파일 두개 만들어 놓으세요.

루시올라 님 정말 감사합니다..
아직 않했는데..
이런 해결책이 나오길 계속 새로고침하면서 기달렸는데
너무 감사합니다..
복받을거예요..^^;
아직 않했는데..
이런 해결책이 나오길 계속 새로고침하면서 기달렸는데
너무 감사합니다..
복받을거예요..^^;

잘 해결됐습니다..
감사합니다.^^;
감사합니다.^^;