최근게시물 추출 관련해서 두번째로 글올립니다. 정보
최근게시물 추출 관련해서 두번째로 글올립니다.본문
질문사항: 최근게시물 추출이 안돼요.
기본사항: 그누보드 설치 폴더 c:\ocean\gnuboard4
c:\ocean 폴더가 기본 웹폴더 입니다.
p.s 초보라 이해를 잘 못하겠어요.
제 생각에는 경로를 적어주는거에서 잔뜩 에러가 난것같은데..
정확하게 어떻게 적어줘야 하는지 알려주세요.
부디 도와주세요.(절박절박TT;)
===================================
index00.php에 삽입한 내용
===================================
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4[title] = "";
include_once("$g4[path]/_head.php");
?>
<?=latest("basic", "qna", 5, 50);?>//최신글
<?
include_once("$g4[path]/_tail.php");
?>
================================
에러메세지
================================
Warning: main(./_common.php) [function.main]: failed to open stream: No such file or directory in C:\ocean\index00.php on line 300
Warning: main() [function.include]: Failed opening './_common.php' for inclusion (include_path='.') in C:\ocean\index00.php on line 300
Warning: main(/lib/latest.lib.php) [function.main]: failed to open stream: No such file or directory in C:\ocean\index00.php on line 301
Warning: main() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.') in C:\ocean\index00.php on line 301
Warning: main(/_head.php) [function.main]: failed to open stream: No such file or directory in C:\ocean\index00.php on line 304
Warning: main() [function.include]: Failed opening '/_head.php' for inclusion (include_path='.') in C:\ocean\index00.php on line 304
Fatal error: Call to undefined function: latest() in C:\ocean\index00.php on line 307
기본사항: 그누보드 설치 폴더 c:\ocean\gnuboard4
c:\ocean 폴더가 기본 웹폴더 입니다.
p.s 초보라 이해를 잘 못하겠어요.
제 생각에는 경로를 적어주는거에서 잔뜩 에러가 난것같은데..
정확하게 어떻게 적어줘야 하는지 알려주세요.
부디 도와주세요.(절박절박TT;)
===================================
index00.php에 삽입한 내용
===================================
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4[title] = "";
include_once("$g4[path]/_head.php");
?>
<?=latest("basic", "qna", 5, 50);?>//최신글
<?
include_once("$g4[path]/_tail.php");
?>
================================
에러메세지
================================
Warning: main(./_common.php) [function.main]: failed to open stream: No such file or directory in C:\ocean\index00.php on line 300
Warning: main() [function.include]: Failed opening './_common.php' for inclusion (include_path='.') in C:\ocean\index00.php on line 300
Warning: main(/lib/latest.lib.php) [function.main]: failed to open stream: No such file or directory in C:\ocean\index00.php on line 301
Warning: main() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.') in C:\ocean\index00.php on line 301
Warning: main(/_head.php) [function.main]: failed to open stream: No such file or directory in C:\ocean\index00.php on line 304
Warning: main() [function.include]: Failed opening '/_head.php' for inclusion (include_path='.') in C:\ocean\index00.php on line 304
Fatal error: Call to undefined function: latest() in C:\ocean\index00.php on line 307
댓글 전체
질문하신분께서 아래 질문 코멘트 대로 왜 경로가 c: 이 들어가 있는지를 알려 주세요
또한 index00.php 의 위치는 어디인가요?
APM 에서의 상황이신지?
또한 index00.php 의 위치는 어디인가요?
APM 에서의 상황이신지?
제 컴을 서버로 쓰고 있습니다.(PHP+MYSQL+IIS)
IIS 사용하고 있습니다. c:\ocean폴더를 기본페이지로 올렸고요. http://localhost를 치면
c:\ocean\index00.php의 경로의 페이지가 나와요.
초보라 제가 잘 대답했는지 모르겠네요.TT;
IIS 사용하고 있습니다. c:\ocean폴더를 기본페이지로 올렸고요. http://localhost를 치면
c:\ocean\index00.php의 경로의 페이지가 나와요.
초보라 제가 잘 대답했는지 모르겠네요.TT;
아무래도 index00.php의 위치와
$g4[path]의 경로 문제인둣 싶네요
아래 링크를 참조해 보시기 바랍니다.
http://www.sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=11281&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%BB%F3%C0%A7&sop=and
$g4[path]의 경로 문제인둣 싶네요
아래 링크를 참조해 보시기 바랍니다.
http://www.sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=11281&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%BB%F3%C0%A7&sop=and
===========================================================
index00.php 에 이런 내용을 삽입했습니다.
===========================================================
<?
$g4_path = "gnuboard4";
include_once("$g4_path/common.php");
?>
<?=latest("basic", "qna", 5, 50);?>
===================================
$g4_path = "gnuboard4"; 이렇게 한 이유는
제 서버의 구조가 c드라이브 안에 ocean폴더가 있습니다.
ocean -----index00.php 포함
|--bbs(제*보드 설치 폴더)
|--gnuboard4(그누보드 설치 폴더)
|--adm
|--bbs
===================================================
에러메세지
===================================================
Fatal error: Cannot redeclare cut_str() (previously declared in C:\ocean\bbs\lib.php:910) in C:\ocean\gnuboard4\lib\common.lib.php on line 915
=========================================================
ps. 참고로 C:\ocean\bbs는 제*보드가 설치 폴더 입니다.
이전에 정의된적이 있다라고 나오는게 아무래도 그 때문인것 같습니다.
해결 방법이 없을까요?
index00.php 에 이런 내용을 삽입했습니다.
===========================================================
<?
$g4_path = "gnuboard4";
include_once("$g4_path/common.php");
?>
<?=latest("basic", "qna", 5, 50);?>
===================================
$g4_path = "gnuboard4"; 이렇게 한 이유는
제 서버의 구조가 c드라이브 안에 ocean폴더가 있습니다.
ocean -----index00.php 포함
|--bbs(제*보드 설치 폴더)
|--gnuboard4(그누보드 설치 폴더)
|--adm
|--bbs
===================================================
에러메세지
===================================================
Fatal error: Cannot redeclare cut_str() (previously declared in C:\ocean\bbs\lib.php:910) in C:\ocean\gnuboard4\lib\common.lib.php on line 915
=========================================================
ps. 참고로 C:\ocean\bbs는 제*보드가 설치 폴더 입니다.
이전에 정의된적이 있다라고 나오는게 아무래도 그 때문인것 같습니다.
해결 방법이 없을까요?
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/tail.sub.php");
위의 두 파일을 불러오지 않은듯.....
include_once("$g4[path]/tail.sub.php");
위의 두 파일을 불러오지 않은듯.....
===========================================================
index00.php 에 추가로 이런 내용을 삽입했습니다.
===========================================================
<?
$g4_path = "gnuboard4";
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/tail.sub.php");
?>
<?=latest("basic", "qna", 5, 50);?>
===================================================
에러메세지
===================================================
Fatal error: Cannot redeclare cut_str() (previously declared in C:\ocean\bbs\lib.php:910) in C:\ocean\gnuboard4\lib\common.lib.php on line 915
=========================================================
여전히 에러메세지는 똑같이 떠요..TT;
부디 해결 방법을 일러주세요.
index00.php 에 추가로 이런 내용을 삽입했습니다.
===========================================================
<?
$g4_path = "gnuboard4";
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/tail.sub.php");
?>
<?=latest("basic", "qna", 5, 50);?>
===================================================
에러메세지
===================================================
Fatal error: Cannot redeclare cut_str() (previously declared in C:\ocean\bbs\lib.php:910) in C:\ocean\gnuboard4\lib\common.lib.php on line 915
=========================================================
여전히 에러메세지는 똑같이 떠요..TT;
부디 해결 방법을 일러주세요.