최근게시물 오류문제[질답봐도 모르겠네요;;;] > 그누4 질문답변

그누4 질문답변

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

최근게시물 오류문제[질답봐도 모르겠네요;;;] 정보

최근게시물 오류문제[질답봐도 모르겠네요;;;]

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : http://hbsj.ivyro.net/index.php



Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /home1/hbsj/public_html/index.php on line 6

Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/hbsj/public_html/index.php on line 6

Warning: include_once(./lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home1/hbsj/public_html/index.php on line 7

Warning: include_once() [function.include]: Failed opening './lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/hbsj/public_html/index.php on line 7


이런 오류문제 많이 보셨죠??
같은 문제로 질문이 많이 올라와 있어서 확인도 해봤지만...
root님의 링크 $g4_path, _common.php 설정 및 사용법도 봤지만..;;;
경로문제를 해결하기 어렵네요..(이해부족..;;)


public_html - gnuboard4폴더
                    - index.php
이렇게 index.php는 그누보드4와 같은위치에 있습니다.

index.php에 최근게시물을 추출하려는데 위의 오류가 뜨네요..

index.php 상단에
<?
$g4[path]=".";
include_once("$g4[path]/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

이렇게 넣었구요..
추출할 곳에 테이블 만들어서
<? echo latest("basic", "myillust", 5, 60); ?>
넣었습니다.



경로를 어떻게 설정해야 하는지 꼭 알려주세요..

제가 php를 잘 몰라서 그러는데;;
index.html에도 최근게시물이 추출되나요??


답변 부탁드리고
미리 감사합니다..
  • 복사

댓글 전체

neue님,말씀처럼 해봤는데 이젠 이런 오류가 나오고 아래페이지들은 전혀 안나오네요.

Warning: include_once(./common.php) [function.include-once]: failed to open stream: No such file or directory in /home1/hbsj/public_html/gnuboard4/_common.php on line 3

Warning: include_once() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/hbsj/public_html/gnuboard4/_common.php on line 3

_common.php가 잘못된듯 한데,,어떻게 수정해야 하나요..?

_common.php의 내용은 이렇습니다.

<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
같은디렉토리에 _common.php 하나 만들어주시고

<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>

내용 넣으시고요

index.php 안엔

<?
$g4[path]="./gnuboard4";
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<? echo latest("basic", "myillust", 5, 60); ?>


함 해보세요
http://hbsj.ivyro.net/index.php 가 root고, 그누보드는 gnuboard4 라는 폴더로 하위에 있네요.

아래 내용으로 _common.php 파일을 하나 더 생성하셔서 root에 업로드 하시구요.

<?
$g4_path = "gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>

root에 있는 index.php 상단에
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
를 추가해 주세요... 아마 되지않을까... 기대합니다.
neue님,퍼플로즈 님.두분다 답변 감사합니다.

헌데 또 오류가 발생했어요..;; 최근게시물이 추출되긴 하는데 페이지의 상단에

Warning: Cannot modify header information - headers already sent by (output started at /home1/hbsj/public_html/index.php:4) in /home1/hbsj/public_html/gnuboard4/common.php on line 8
이 오류가 떴습니다

이번엔 common.php가 잘못됐나요..;;
원본에서 바꾼거 전혀 없구요..

common.php의 8번째줄이
header('P3P: CP="ALL CURa ADMa DEVa TAIa OUR BUS IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC OTC"');

이겁니다...
휴..생각보다 너무 어렵네요..답변 주시면 감사하겠습니다.꾸벅
© SIRSOFT
현재 페이지 제일 처음으로