최근게시물 추출. > 그누4 질문답변

그누4 질문답변

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

최근게시물 추출. 정보

최근게시물 추출.

본문

아아...너무 어렵네요.ㅠㅠㅠㅠㅠ
제로보드에서 했던것처럼, 적용해보았지만, 계속 오류만 뜨네요.
 
일단...매뉴얼에 나와있는것 처럼...
<?=latest("main", "notice", 5, 20);?>
 
위의 구문을 최근게시물이 출력되었으면 하는 곳에 삽입했습니다.
하지만 오류가 뜨는 바람에...
매뉴얼에 나와있는 다른 소스인
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php"); // latest() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
echo latest("basic", "free", 5, 70); // basic 스킨으로 free 라는 게시판을 출력합니다.
?>
 
를 가장 위의 붙여넣었는데요.
역시나 오류가 납니다.
 
그래서 질문답변 게시판에 게시물들을 확인하며, 적용해보았지만, 전부 통하지 않네요.
 
1.index.php
 
$g4_path = "..";
 
이것을
 
$g4_path = "../gnuboard4"; 로 바꿨습니다. 하지만 역시나 에러.ㅠㅠ
 
2.페이지의 맨끝에.

<?
include_once("./_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");
?>
를 붙였습니다.
 
하지만 아래와 같은 오류가 나더군요. 

Warning: main(./_common.php) [function.main]: failed to create stream: No such file or directory in /home/hosting_users/tiger4378/www/test.php on line 2
Warning: main() [function.main]: Failed opening './_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/tiger4378/www/test.php on line 2
Warning: main(/lib/latest.lib.php) [function.main]: failed to create stream: No such file or directory in /home/hosting_users/tiger4378/www/test.php on line 3
Warning: main() [function.main]: Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/tiger4378/www/test.php on line 3
Warning: main(/lib/outlogin.lib.php) [function.main]: failed to create stream: No such file or directory in /home/hosting_users/tiger4378/www/test.php on line 4
Warning: main() [function.main]: Failed opening '/lib/outlogin.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/tiger4378/www/test.php on line 4
Warning: main(/head.sub.php) [function.main]: failed to create stream: No such file or directory in /home/hosting_users/tiger4378/www/test.php on line 5
Warning: main() [function.main]: Failed opening '/head.sub.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/tiger4378/www/test.php on line 5
 

Fatal error: Call to undefined function: latest() in /home/hosting_users/tiger4378/www/test.php on line 25
 
3.index.php
의 <?
$g4_path = "gunboard4"; // 그누보드 상대경로
include_once("$g4_path/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
echo latest("basic", "notice1", 5, 70);
?> 로 바꿔주었습니다.
 
위와 똑같은 길고긴 오류가 났습니다.ㅠㅠㅠ
 
 
도대체..무엇이 문제인걸까요.ㅠㅠㅠㅠㅠㅠ
너무 어렵네요.ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ
  • 복사

댓글 전체

위의 주소의 강좌처럼 따라해보았는데요.
(전 그누보드를 www폴더에 넣어서, _common.php와 index.php를 강좌처럼 수정하고, www폴더위에
업로드 했습니다.)
처음엔 최근게시물이 제대로 출력되더라구요.
하지만, 게시판에 가서, 게시물을 추가한 순간부터, 오류가 떳습니다.

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/tiger4378/www/_common.php:4) in /home/hosting_users/tiger4378/www/gnuboard4/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/tiger4378/www/_common.php:4) in /home/hosting_users/tiger4378/www/gnuboard4/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/tiger4378/www/_common.php:4) in /home/hosting_users/tiger4378/www/gnuboard4/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/tiger4378/www/_common.php:4) in /home/hosting_users/tiger4378/www/gnuboard4/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/tiger4378/www/_common.php:4) in /home/hosting_users/tiger4378/www/gnuboard4/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/tiger4378/www/_common.php:4) in /home/hosting_users/tiger4378/www/gnuboard4/head.sub.php on line 38

그래서 head.sub.php파일도 www폴더에 올렸지만, 똑같은 오류가 뜨더라구요.ㅠㅠㅠㅠㅠㅠㅠ
어찌해야 할까요.ㅠㅠㅠㅠㅠㅠ
© SIRSOFT
현재 페이지 제일 처음으로