최근글 관련해서 오류좀 봐주세요 ㅎㅎ; > 그누4 질문답변

그누4 질문답변

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

최근글 관련해서 오류좀 봐주세요 ㅎㅎ; 정보

최근글 관련해서 오류좀 봐주세요 ㅎㅎ;

본문

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

일단 제일 상단에 이렇게 넣었는데요

최근게시물 뜨긴뜨는데 홈페이지 상단에... 에러가 뜨네요

Warning: Cannot modify header information - headers already sent by (output started at /home/trollking25/www/index.php:3) in /home/trollking25/www/gnuboard4/common.php on line 8 Warning: Cannot modify header information - headers already sent by (output started at /home/trollking25/www/index.php:3) in /home/trollking25/www/gnuboard4/head.sub.php on line 32 Warning: Cannot modify header information - headers already sent by (output started at /home/trollking25/www/index.php:3) in /home/trollking25/www/gnuboard4/head.sub.php on line 34 Warning: Cannot modify header information - headers already sent by (output started at /home/trollking25/www/index.php:3) in /home/trollking25/www/gnuboard4/head.sub.php on line 35 Warning: Cannot modify header information - headers already sent by (output started at /home/trollking25/www/index.php:3) in /home/trollking25/www/gnuboard4/head.sub.php on line 36 Warning: Cannot modify header information - headers already sent by (output started at /home/trollking25/www/index.php:3) in /home/trollking25/www/gnuboard4/head.sub.php on line 37 Warning: Cannot modify header information - headers already sent by (output started at /home/trollking25/www/index.php:3) in /home/trollking25/www/gnuboard4/head.sub.php on line 38

도대체 뭐가 문제일까요;;
  • 복사

댓글 전체

common.php 8행에 보면 header(~~)라는 것이 있습니다
이와 같은  header 이전에는 빈 라인 포함 어떤 출력도 있어서 안되는 규칙이 있습니다
이걸 위반 했다는 말입니다
이것만 수정하면 다른 에러들은 자동으로 없어집니다

예를들어 index.php를 만들 때 아래와 같이 만드는 경우
   
    <--한줄 뜨우고
<?
include "_common.php";
~~~
© SIRSOFT
현재 페이지 제일 처음으로