최신글 불러오기가 잘 안됩니다..도와주세요..ㅠㅠ 정보
최신글 불러오기가 잘 안됩니다..도와주세요..ㅠㅠ본문
제로보드를 사용하다가 그누보드로 바꿀려고 하는데 쉽지 않네요!!
홈페이지 구성은..
www
├ gnuboard ┬ adm
│ ├ bbs
│ ├ cheditor
│ ├ convert
│ ├ data
│ ├ extend
│ ├ img
│ ├ js
│ ├ lib
│ ├ skin
├ gnuboard ┬ adm
│ ├ bbs
│ ├ cheditor
│ ├ convert
│ ├ data
│ ├ extend
│ ├ img
│ ├ js
│ ├ lib
│ ├ skin
│ └ _common.php
│ :
│ :
│
├ index.htm
├ index.htm
├ test.php
:
:
test.php 소스
<?
$g4_path = "gunboard"; // 그누보드 상대경로
include_once("$g4_path/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
$g4_path = "gunboard"; // 그누보드 상대경로
include_once("$g4_path/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<?=latest("multi_tap", "board_1", 4, 100);?>
</body>
</html>
</html>
_common.php 소스
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php"); ?>
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php"); ?>
댓글 전체
test.php와 같은 디렉터리에도 _common.php를 만들고
_common.php 소스
<?
$g4_path = "gnuboard"; // common.php 의 상대 경로
include_once("$g4_path/common.php"); ?>
=============
test.php 소스
<?
include_once("_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
_common.php 소스
<?
$g4_path = "gnuboard"; // common.php 의 상대 경로
include_once("$g4_path/common.php"); ?>
=============
test.php 소스
<?
include_once("_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
위 처럼 하니...이런 에러 메세지가 뜨네요...ㅠㅠ
Warning: latest(gnuboard/skin/latest/multi_tap/latest.skin.php): failed to open stream: No such file or directory in /home/hosting_users/mogoon/www/gnuboard/lib/latest.lib.php on line 27
Warning: latest(gnuboard/skin/latest/multi_tap/latest.skin.php): failed to open stream: No such file or directory in /home/hosting_users/mogoon/www/gnuboard/lib/latest.lib.php on line 27
Warning: latest(): Failed opening 'gnuboard/skin/latest/multi_tap/latest.skin.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mogoon/www/gnuboard/lib/latest.lib.php on line 27
++ latest.lib.php 소스일부 ++
26 ob_start();
27 include "$latest_skin_path/latest.skin.php";
28 $content = ob_get_contents();
29 ob_end_clean();
Warning: latest(gnuboard/skin/latest/multi_tap/latest.skin.php): failed to open stream: No such file or directory in /home/hosting_users/mogoon/www/gnuboard/lib/latest.lib.php on line 27
Warning: latest(gnuboard/skin/latest/multi_tap/latest.skin.php): failed to open stream: No such file or directory in /home/hosting_users/mogoon/www/gnuboard/lib/latest.lib.php on line 27
Warning: latest(): Failed opening 'gnuboard/skin/latest/multi_tap/latest.skin.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mogoon/www/gnuboard/lib/latest.lib.php on line 27
++ latest.lib.php 소스일부 ++
26 ob_start();
27 include "$latest_skin_path/latest.skin.php";
28 $content = ob_get_contents();
29 ob_end_clean();
test.php 소스
<?
$g4_path = "gunboard"; // 그누보드 상대경로
==>
test.php 소스
<?
$g4_path = "./gunboard"; // 그누보드 상대경로
;
그리고
_common.php 소스
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php"); ?>
==>
_common.php 소스
<?
;$g4_path = "."; // common.php 의 상대 경로 ****주석처리
include_once("$g4_path/common.php"); ?>
로 주석처리 해 보심 어떨지
<?
$g4_path = "gunboard"; // 그누보드 상대경로
==>
test.php 소스
<?
$g4_path = "./gunboard"; // 그누보드 상대경로
;
그리고
_common.php 소스
<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php"); ?>
==>
_common.php 소스
<?
;$g4_path = "."; // common.php 의 상대 경로 ****주석처리
include_once("$g4_path/common.php"); ?>
로 주석처리 해 보심 어떨지
위 방법대로 해도 에러 메시지는 여전하네요.ㅠㅠ
Warning: main(./common.php): failed to open stream: No such file or directory in /home/hosting_users/mogoon/www/_common.php on line 3
Warning: main(): Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mogoon/www/_common.php on line 3
Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory in /home/hosting_users/mogoon/www/test.php on line 4
Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mogoon/www/test.php on line 4
Fatal error: Call to undefined function: latest() in /home/hosting_users/mogoon/www/test.php on line 16
Warning: main(./common.php): failed to open stream: No such file or directory in /home/hosting_users/mogoon/www/_common.php on line 3
Warning: main(): Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mogoon/www/_common.php on line 3
Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory in /home/hosting_users/mogoon/www/test.php on line 4
Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/mogoon/www/test.php on line 4
Fatal error: Call to undefined function: latest() in /home/hosting_users/mogoon/www/test.php on line 16

test.php 소스
<?
$g4_path = ".";
include_once("$g4_path/_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<?=latest("multi_tap", "board_1", 4, 100);?>
<?
include_once("$g4[path]/tail.sub.php");
?>
_common.php 소스
<?
$g4_path = "gunboard";
include_once("$g4_path/common.php");
?>
<?
$g4_path = ".";
include_once("$g4_path/_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<?=latest("multi_tap", "board_1", 4, 100);?>
<?
include_once("$g4[path]/tail.sub.php");
?>
_common.php 소스
<?
$g4_path = "gunboard";
include_once("$g4_path/common.php");
?>
행복님 보시면 에러메세지 보시면 아시겟지만 경로가 ./gnuboard/common.php가 아니고 ./common.php로 돼잇잖아요 test.php파일에서 _common.php를 불러오면 _common은 test.php가 잇는 폴더와 같은 위치로 인식됍니다
여기서 common.php를 불러오면 test.php가 잇는 폴더에서 common을 찾게 돼지요.. 아마 위엣분처럼 하시면 잘 돼지 않을까 싶습니다^^;
여기서 common.php를 불러오면 test.php가 잇는 폴더에서 common을 찾게 돼지요.. 아마 위엣분처럼 하시면 잘 돼지 않을까 싶습니다^^;
gnuboard/skin/latest/multi_tap/latest.skin.php
multi_tap 스킨을 설치하셔나요?
multi_tap 스킨을 설치하셔나요?
답글주신분들 넘 감사합니다. 덕분에 해결했습니다.!!^^&
어떻게 했더니 고쳐졌다는 답글을 남겨 주시면
다음에 검색하시는 분들에게 도움이 됩니다
다음에 검색하시는 분들에게 도움이 됩니다