쟌

그누보드 head.php 관련 질문입니다.

· 2013-01-25 (금) 12:28:09 · 1614 · 2
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :

제가 원하는 디자인을 해서 head.php를 바꾸었습니다. 그런데 ㅠ.ㅠ 상단에 이렇게 에러 소스가 나는 군요

Warning: include_once(gnuboard4/common.php) [function.include-once]: failed to open stream: No such file or directory in /home/kchpa01/www/gnuboard4/head.php on line 3

Warning: include_once() [function.include]: Failed opening 'gnuboard4/common.php' for inclusion (include_path='.:/usr/share/pear') in /home/kchpa01/www/gnuboard4/head.php on line 3

이것은 head.php상단 내용입니다.
<?
$g4_path="gnuboard4";
include_once("gnuboard4/common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/head.sub.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

도대체 어디가 문제인것인가요???? ㅠ.ㅠ 너무 모르겠습니다. 도와주세요 ㅠ.ㅠ
|

댓글 2개

$g4_path를 해당 페이지에서 선언하시면 안됩니다.

$g4_path="gnuboard4";
include_once("gnuboard4/common.php");

위 두줄 대신에

include_once("./_common.php"); // 이것을 추가하세요.

어느 폴더인지 그누의 기능을 사용하려면 common.php을 불러와야 하는데
그것은 _common.php 파일이 common.php의 상대경로값을 가지고 있습니다.
하위폴더로 내려간다고 해도 _common.php를 설정하시면
얼마든지 그누의 기능을 이용할수 있습니다.
2013-01-25 (금) 13:40:17
답변 감사합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-01-25 조회 1,687
13-01-25 조회 944
13-01-25 조회 956
13-01-25 조회 1,049
13-01-25 조회 1,005
13-01-25 조회 2,152
13-01-25 조회 1,257
13-01-25 조회 1,279
13-01-25 조회 1,061
13-01-25 조회 947
13-01-25 조회 3,663
13-01-25 조회 1,615
13-01-25 조회 744
13-01-25 조회 880
13-01-25 조회 618
13-01-25 조회 1,014
13-01-25 조회 612
13-01-25 조회 819
13-01-25 조회 1,651
13-01-25 조회 1,132