최근게시물을 원하는 곳에 넣고 싶어요 정보
최근게시물을 원하는 곳에 넣고 싶어요본문
index.html 에서 원하는 곳에 최신글을 넣고 싶어서 문의 드립니다.
제가 몇시간 동안 헤메면서 여러가지 해 봤는데요
도저히 안되네요 시간만 까먹구... 도와주세요
ftp에서 public_html폴더안에 index.html과 gnuboard4폴더가 있구요
드림위버에서 index.html 파일을 열어 code에서 제일 윗부분에
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("./_head.php");
?>
이것을 넣었구요.
최근글을 넣고 싶은 부분에
<?=latest("basic","board1",5,70);?>
을 넣었는데요. 저장하고 ftp에 올리고 실행을 해보니
홈페이지 상단에
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /home1/tnk3570/public_html/index.html on line 2
Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/tnk3570/public_html/index.html on line 2
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp:/home1/tnk3570) in /home1/tnk3570/public_html/index.html on line 3
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /home1/tnk3570/public_html/index.html on line 3
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/tnk3570/public_html/index.html on line 3
Warning: include_once(./_head.php) [function.include-once]: failed to open stream: No such file or directory in /home1/tnk3570/public_html/index.html on line 4
Warning: include_once() [function.include]: Failed opening './_head.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/tnk3570/public_html/index.html on line 4
이렇게 나오고
제가 최근게시글을 출력하고 싶은 부분에는
Fatal error: Call to undefined function latest() in /home1/tnk3570/public_html/index.html on line 123
이렇게 나옵니다.
도와 주세요...
제가 몇시간 동안 헤메면서 여러가지 해 봤는데요
도저히 안되네요 시간만 까먹구... 도와주세요
ftp에서 public_html폴더안에 index.html과 gnuboard4폴더가 있구요
드림위버에서 index.html 파일을 열어 code에서 제일 윗부분에
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("./_head.php");
?>
이것을 넣었구요.
최근글을 넣고 싶은 부분에
<?=latest("basic","board1",5,70);?>
을 넣었는데요. 저장하고 ftp에 올리고 실행을 해보니
홈페이지 상단에
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /home1/tnk3570/public_html/index.html on line 2
Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/tnk3570/public_html/index.html on line 2
Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/lib/latest.lib.php) is not within the allowed path(s): (/tmp:/home1/tnk3570) in /home1/tnk3570/public_html/index.html on line 3
Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: Operation not permitted in /home1/tnk3570/public_html/index.html on line 3
Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/tnk3570/public_html/index.html on line 3
Warning: include_once(./_head.php) [function.include-once]: failed to open stream: No such file or directory in /home1/tnk3570/public_html/index.html on line 4
Warning: include_once() [function.include]: Failed opening './_head.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/tnk3570/public_html/index.html on line 4
이렇게 나오고
제가 최근게시글을 출력하고 싶은 부분에는
Fatal error: Call to undefined function latest() in /home1/tnk3570/public_html/index.html on line 123
이렇게 나옵니다.
도와 주세요...
댓글 전체
아래 내용을 _common.php로 만들어서 index.html이 있는 폴더에 업로드 하세요.
<?
$g4_path = "./gnuboard4/"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
-------------
index.html이 있는 폴더에 _head.php파일이 없으면 아래처럼 수정
nclude_once($g4['path']."./_head.php");
<?
$g4_path = "./gnuboard4/"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
-------------
index.html이 있는 폴더에 _head.php파일이 없으면 아래처럼 수정
nclude_once($g4['path']."./_head.php");
경로와 관계된 에러 같은데요.
꼭 루트페이지에 그누폴더를 올려야할 특별한 이유가 있나요?
그렇지 않다면 그누폴더 안에 설치하시지 말고 루트에 바로 설치하시면 간단할 것 같은데 말이죠...
꼭 루트페이지에 그누폴더를 올려야할 특별한 이유가 있나요?
그렇지 않다면 그누폴더 안에 설치하시지 말고 루트에 바로 설치하시면 간단할 것 같은데 말이죠...