탑

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

<?
$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 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
13-04-18 조회 1,189
13-04-18 조회 1,493
13-04-18 조회 1,159
13-04-18 조회 3,094
13-04-18 조회 1,777
13-04-18 조회 2,823
13-04-18 조회 1,233
13-04-18 조회 1,797
13-04-18 조회 1,200
13-04-18 조회 2,388
13-04-18 조회 1,722
13-04-17 조회 917
13-04-17 조회 911
13-04-17 조회 893
13-04-17 조회 1,043
13-04-17 조회 2,897
13-04-17 조회 922
13-04-17 조회 1,723
13-04-17 조회 1,047
13-04-17 조회 1,718