최근글 관련해서 오류좀 봐주세요 ㅎㅎ; 정보
최근글 관련해서 오류좀 봐주세요 ㅎㅎ;본문
<?
$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
도대체 뭐가 문제일까요;;
$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";
~~~
이와 같은 header 이전에는 빈 라인 포함 어떤 출력도 있어서 안되는 규칙이 있습니다
이걸 위반 했다는 말입니다
이것만 수정하면 다른 에러들은 자동으로 없어집니다
예를들어 index.php를 만들 때 아래와 같이 만드는 경우
<--한줄 뜨우고
<?
include "_common.php";
~~~