테스트 사이트 - 개발 중인 베타 버전입니다

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

· 12년 전 · 1487 · 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를 설정하시면
얼마든지 그누의 기능을 이용할수 있습니다.
12년 전
답변 감사합니다.

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440