최근게시물을 메인화면에 추출하는 방법즘요...

· 2012-07-04 (수) 14:47:07 · 1611 · 1
저는 드림위버로 html파일로 메인화면을 만들었습니다.
그리고 도메인을 사고 그누보드4를 같이 호스팅하였는데요..
메인화면에 최근게시물을 추출하고 싶은데요..
여기저기 알아봤는데 경로도 맞는거 같고 맞게 소스를 쓴것도 같은데요..계속
Warning: include_once(/_common.php) [function.include-once]: failed to open stream: No such file or directory in /host/home4/siesta1981/html/index.html on line 442

Warning: include_once() [function.include]: Failed opening '/_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /host/home4/siesta1981/html/index.html on line 442

Warning: include_once(/lib/latest.lib.php) [function.include-once]: failed to open stream: No such file or directory in /host/home4/siesta1981/html/index.html on line 443

Warning: include_once() [function.include]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /host/home4/siesta1981/html/index.html on line 443

Fatal error: Call to undefined function latest() in /host/home4/siesta1981/html/index.html on line 447
이런메세지만 나오네요..
참고로 FTP에서 원래 제가 만들었던 드림위버만든 폴더와 이미지 폴더와 gnuboard4폴더가 따로 되어 있어요..

제발 고수님들의 자세한 답변 부탁드려요

아!
그리고 회원가입은 어떻게 연동되게 하는지도 부탁드립니다.
|

댓글 1개

2012-07-04 (수) 14:48:59
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

index 최고상단에 이렇게 되어있어야 하구요

_common.php 에는 아래와 같이 설정되어 있어야 해요 (g4_path 정확히 넣으세요)

<?
$g4_path = "."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
12-07-04 조회 1,978
12-07-04 조회 1,341
12-07-04 조회 1,966
12-07-04 조회 1,633
12-07-04 조회 1,084
12-07-04 조회 1,616
12-07-04 조회 1,685
12-07-04 조회 1,070
12-07-04 조회 804
12-07-04 조회 1,612
12-07-04 조회 1,305
12-07-04 조회 828
12-07-04 조회 886
12-07-04 조회 1,143
12-07-04 조회 830
12-07-04 조회 1,058
12-07-04 조회 1,556
12-07-04 조회 1,043
12-07-04 조회 1,009
12-07-04 조회 1,070