급해서 여기 올렸습니다..

· 2010-05-03 (월) 15:58:41 · 1893 · 9
포인트가 500뿐이라서..ㅠ.ㅠ

html(최상위)에 그누설치했서 홈피 만들고

다른 홈피가 필요해서

 하위에 다른 폴더(gnu2) 만들어서 

index파일과 images파일만 올린상태입니다..

그런데 여기서 index에 어떤 명령어와 gnu2폴더 않에 어떤 파일일을 넣어줘야

최근게시물과 갤러리 로그인이 출력되나요..

꼭 좀 답변 부탁해요..

|

댓글 9개

질답란에서
탈디렉토리 관련으로 검색하시면 나올거예요 ~
2010-05-03 (월) 16:08:18
감사합니다..꾸벅
2010-05-03 (월) 16:12:36
없는데요 도저히 못찾겠어요.ㅠㅠ.
2010-05-03 (월) 16:16:08
아래부분을어떻게 처리해야 될까요..고수님들 알려주세요..ㅠ.ㅠ
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>
2010-05-03 (월) 16:45:11
/html/
원본그누가 여기에 있고
/html/gnu2/index.php
새로 만드는게 여기라면
./가 아니라 ../로 하셔야 합니다.
2010-05-03 (월) 19:01:47
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
--------------------------------
2010-05-03 (월) 19:44:09
다시 원래대로 바꿔놓고 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");
?>
이 파일 두개 만들어 놓으세요.
2010-05-03 (월) 21:47:45
루시올라 님 정말 감사합니다..
아직 않했는데..

이런 해결책이 나오길 계속 새로고침하면서 기달렸는데
너무 감사합니다..
복받을거예요..^^;
2010-05-03 (월) 22:16:17
잘 해결됐습니다..
감사합니다.^^;
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

202,958건
+
제목 글쓴이 날짜 조회
10-05-03 조회 1,828
10-05-03 조회 1,468
10-05-03 조회 1,894
10-05-03 조회 1,827
10-05-03 조회 1,680
10-05-03 조회 2,206
10-05-03 조회 1,835
10-05-03 조회 4,013
10-05-03 조회 2,139
10-05-03 조회 1,854
10-05-03 조회 1,902
10-05-03 조회 1,553
10-05-03 조회 3,639
10-05-03 조회 1,777
10-05-03 조회 1,722
10-05-03 조회 2,097
10-05-03 조회 1,930
10-05-03 조회 1,447
10-05-03 조회 2,145
10-05-03 조회 1,818