공지사항을 메인에 연결 정보
공지사항을 메인에 연결본문
계속에러가 나는데..경로가 잘못되어서 그런가용..잘모르겠서용
flo-flower(폴더) ftp접속에 보이는 폴더
public_html(폴더)ftp접속에 보이는 폴더
pubic_html 하위폴더에
gardening
gnuboard4폴더가 있습니다.
gardening폴에 index.html(메인페이지)
경로가 잘못된건가용..계속 에러가 나서요
<?
nclude_once("../gnuboard4/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
echo latest("1on1_cheditor","s_customer",5,30);
이거 넣어보았는데 안되드라구용
<?=latest("1on1_cheditor","s_customer",5,30); ?>
?>
제가 잘해서 그런거겠죠.. 잘 모르겠습니다..
아시는분좀 가르쳐주세요
flo-flower(폴더) ftp접속에 보이는 폴더
public_html(폴더)ftp접속에 보이는 폴더
pubic_html 하위폴더에
gardening
gnuboard4폴더가 있습니다.
gardening폴에 index.html(메인페이지)
경로가 잘못된건가용..계속 에러가 나서요
<?
nclude_once("../gnuboard4/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
echo latest("1on1_cheditor","s_customer",5,30);
이거 넣어보았는데 안되드라구용
<?=latest("1on1_cheditor","s_customer",5,30); ?>
?>
제가 잘해서 그런거겠죠.. 잘 모르겠습니다..
아시는분좀 가르쳐주세요
댓글 전체

commom잘못거신듯..
include_once("./_common.php");로 다시 해보세요
폴더안에 _common.php 가 없으면, bbs에서 복사해 넣으세요
include_once("./_common.php");로 다시 해보세요
폴더안에 _common.php 가 없으면, bbs에서 복사해 넣으세요
Fatal error: Call to undefined function: nclude_once() in /home/flowersntree.co.kr/public_html/gardening/index.html on line 89
그러게 해두 에러 뜨네요..ㅠㅠ
그러게 해두 에러 뜨네요..ㅠㅠ

함수 호출이 안된다는 에러 같은데.
nclude_once()라는 함수는 없어요. 그래서 호출이 안되는거 같네요.
정확히 include_once("./_common.php"); 로 적어보세요.
nclude_once()라는 함수는 없어요. 그래서 호출이 안되는거 같네요.
정확히 include_once("./_common.php"); 로 적어보세요.
Warning: main(./common.php): failed to open stream: No such file or directory in /home/flowersntree.co.kr/public_html/gnuboard4/_common.php on line 3
Warning: main(): Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/flowersntree.co.kr/public_html/gnuboard4/_common.php on line 3
Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory in /home/flowersntree.co.kr/public_html/gardening/index.html on line 90
Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/flowersntree.co.kr/public_html/gardening/index.html on line 90
Fatal error: Call to undefined function: latest() in /home/flowersntree.co.kr/public_html/gardening/index.html on line 91
파일이 없다는 에러같은데
Warning: main(): Failed opening './common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/flowersntree.co.kr/public_html/gnuboard4/_common.php on line 3
Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory in /home/flowersntree.co.kr/public_html/gardening/index.html on line 90
Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/flowersntree.co.kr/public_html/gardening/index.html on line 90
Fatal error: Call to undefined function: latest() in /home/flowersntree.co.kr/public_html/gardening/index.html on line 91
파일이 없다는 에러같은데

이번엔 common.php를 잘못 쓰셨네요.
include_once("./_common.php");
밑줄 꼭 붙이셔야 합니다. include_once함수는 _common.php를 불러주는 함수이기때문에
해당폴더에 _common.php가 꼭 들어있어야 하고, 없다면, bbs폴더에서 복사하셔서
넣어주세요.
include_once("./_common.php");
밑줄 꼭 붙이셔야 합니다. include_once함수는 _common.php를 불러주는 함수이기때문에
해당폴더에 _common.php가 꼭 들어있어야 하고, 없다면, bbs폴더에서 복사하셔서
넣어주세요.

include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
해당폴더에 _common.php를 만들어서..
$g4_path = "..";
include("$g4_path/common.php");
common.php파일의 위치를 $g4_path를 이용하여 상대경로로 지정 해 주셔야 합니다...
include_once("$g4[path]/lib/latest.lib.php");
해당폴더에 _common.php를 만들어서..
$g4_path = "..";
include("$g4_path/common.php");
common.php파일의 위치를 $g4_path를 이용하여 상대경로로 지정 해 주셔야 합니다...
gardening (폴더안에는)
index.html있구요
gnuboard4폴더가 있습니다.
gnuboard4에
_common.php 있습니다. 그안에 bbs폴더두 있구요..bbs폴더안에 _common.php
다 있는데..또 다른데다 복사해나야하는건가요?
index.html있구요
gnuboard4폴더가 있습니다.
gnuboard4에
_common.php 있습니다. 그안에 bbs폴더두 있구요..bbs폴더안에 _common.php
다 있는데..또 다른데다 복사해나야하는건가요?

_common.php파일이 어디들어있다고, 다 걸리는건 아니구요.
음... 컴퓨터가 common.php를 찾아갈수 있도록, 해주셔야죠.
차근차근 설명해드릴께요.
lastest함수를 부르기위해선 common.php 가 필요합니다. 뭘 하든 무엇을 하든,
common.php가 가장 중요하다고 생각하시고요.
이 common.php 파일은 그누보드를 깔았을때, 가장 최초 폴더에 들어있는데,
여기서 _common.php 파일은 common.php를 호출하는 역할을 합니다.
음... 컴퓨터가 common.php를 찾아갈수 있도록, 해주셔야죠.
차근차근 설명해드릴께요.
lastest함수를 부르기위해선 common.php 가 필요합니다. 뭘 하든 무엇을 하든,
common.php가 가장 중요하다고 생각하시고요.
이 common.php 파일은 그누보드를 깔았을때, 가장 최초 폴더에 들어있는데,
여기서 _common.php 파일은 common.php를 호출하는 역할을 합니다.

아마 뽀식님은 그누보드 깔았던 폴더랑 gardening폴더 두개를 따로 나누신거 같은데,
gardening 안에도 common.php를 호출하기위한 _common.php가 필요하겠죠?
경로지정이 약간 복잡한데, _common.php를 수정하셔야 할듯합니다.
gnuboard4/_common.php 로요
gardening 안에도 common.php를 호출하기위한 _common.php가 필요하겠죠?
경로지정이 약간 복잡한데, _common.php를 수정하셔야 할듯합니다.
gnuboard4/_common.php 로요

gardening폴더 에 _common.php를 만들어서..
<?
$g4_path = "../gnuboard4";
include("$g4_path/common.php");
?>
이렇게 하시면 될 것 같네요..
꺼벙이님 고생이 많으시넹=ㅁ=;;;;
<?
$g4_path = "../gnuboard4";
include("$g4_path/common.php");
?>
이렇게 하시면 될 것 같네요..
꺼벙이님 고생이 많으시넹=ㅁ=;;;;

그르게요. ㅡ.ㅡ;;
그냥 정답을 바로 말씀드리는게, 좋았을까요. ㅎㅎ
그냥 정답을 바로 말씀드리는게, 좋았을까요. ㅎㅎ

꺼벙이님 처럼 가르쳐드리는게 좋은거죵.......... 그래야 이해를 할 수 있으니까용~~
전 귀찮아서 그냥 정답만.........=ㅁ=;;;;;;;
전 귀찮아서 그냥 정답만.........=ㅁ=;;;;;;;
꺼벙님하구 june44님 감사드립니다.