k

최근게시물문제...

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :


제로보드사용하다 이번에 그누보드 사용할려는데 역시 어렵네요..

최근게시물달려고하는데...

main.php 파일에 넣을려고합니다..

head 부분에 넣어야할거

<?PHP
$g4_path="../gnuboard4";
include_once("$g4_path/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

이렇게 넣고

최근게시물출력될부분에 <?=latest("basic", gallery, 12, 70);?>

이렇게 넣었습니다
물론 gallery 게시판있습니다

www / gnuboard4
/ index.html
/ main.php

이렇게있습니다
같은 경로에 그누보드 메인php 있습니다...



답변주신분이

<?PHP
$g4_path="../gnuboard4";
include_once("$g4_path/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

부분을

<?PHP
$g4_path=".";
include_once("$g4_path/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>


이렇게해라고해서 했는데도 안되네요...



Warning: main(./_common.php): failed to open stream: No such file or directory in /home/hosting_users/digital016/www/main.php on line 10

Warning: main(): Failed opening './_common.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/digital016/www/main.php on line 10

Warning: main(/lib/latest.lib.php): failed to open stream: No such file or directory in /home/hosting_users/digital016/www/main.php on line 11

Warning: main(): Failed opening '/lib/latest.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/digital016/www/main.php on line 11


라고 뜨네요..
|

댓글 5개

main.php 에서 볼 때 gnuboard의 경로는 'gnuboard4'가 되므로

<?php
$g4_path="gnuboard4";
include_once("$g4_path/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
가 될 것 같네요.
<?php
$g4_path="gnuboard4";
include_once("$g4_path/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

했는데 안됩니다.

겨우 찾았는데요..

<?
$g4_path = "./gnuboard4"; // common.php의 상대경로
include_once "$g4_path/common.php";
include_once("$g4[path]/lib/latest.lib.php");
?>

이렇게하니 되는데...

이제 다른곳에 에러가 나네요


Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/digital016/www/main.php:6) in /home/hosting_users/digital016/www/gnuboard4/common.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/digital016/www/main.php:6) in /home/hosting_users/digital016/www/gnuboard4/lib/common.lib.php on line 109

라고 뜹니다
main.php에서 header()함수 쓰시면 제거하세요.
include_once("$g4[path]/head.sub.php");
이거 한줄도 추가해보세요
이 문제는 <html> 태그 다음에 header()함수가 오면 그럽니다. 다른 분들도 참조하세요...
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 1,738
17년 전 조회 741
17년 전 조회 804
17년 전 조회 819
17년 전 조회 1,528
17년 전 조회 761
17년 전 조회 1,978
17년 전 조회 1,505
17년 전 조회 812
17년 전 조회 798
17년 전 조회 1,037
17년 전 조회 794
17년 전 조회 823
17년 전 조회 760
17년 전 조회 1,545
17년 전 조회 843
17년 전 조회 770
17년 전 조회 765
17년 전 조회 717
17년 전 조회 829