탑

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

· 2013-04-17 (수) 20:45:40 · 1038 · 2
<?
$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

도대체 뭐가 문제일까요;;
|

댓글 2개

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

예를들어 index.php를 만들 때 아래와 같이 만드는 경우

<--한줄 뜨우고
<?
include "_common.php";
~~~
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-04-18 조회 1,172
13-04-18 조회 1,483
13-04-18 조회 1,144
13-04-18 조회 3,082
13-04-18 조회 1,765
13-04-18 조회 2,813
13-04-18 조회 1,222
13-04-18 조회 1,785
13-04-18 조회 1,188
13-04-18 조회 2,370
13-04-18 조회 1,712
13-04-17 조회 906
13-04-17 조회 903
13-04-17 조회 882
13-04-17 조회 1,033
13-04-17 조회 2,886
13-04-17 조회 915
13-04-17 조회 1,713
13-04-17 조회 1,039
13-04-17 조회 1,707