게시물 추출시 에러가 나요. > 그누4 질문답변

그누4 질문답변

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

게시물 추출시 에러가 나요. 정보

게시물 추출시 에러가 나요.

본문

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

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/joycups/www/gnuboard4/la-no.php:1) in /home/hosting_users/joycups/www/gnuboard4/lib/common.lib.php on line 98

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/joycups/www/gnuboard4/la-no.php:1) in /home/hosting_users/joycups/www/gnuboard4/lib/common.lib.php on line 98

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/joycups/www/gnuboard4/la-no.php:1) in /home/hosting_users/joycups/www/gnuboard4/lib/common.lib.php on line 98

이런 에러가 납니다.

_head.php파일엔
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.php");
?>

이렇게 들어가 있구요.

la-no.php파일엔 다음과 같이 있습니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<html>
<head>
<title>마음까지 따뜻해지는 "JOY CUPS"</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body leftmargin="0" topmargin="0">
<table width="250"><tr><td bgcolor="#00CC66" width="100%">
<?=latest("enaksu", "notice", 5, 60); ?>
</td></tr></table>
</body>
</html>

메인에 게시물추출을 하려 추출은 되는데 에러메세지와 같이 나오네요.
어찌 해야할지...ㅜㅠ 대략 난감하여 이렇게 늦은 밤에 글을 남김니다.
포인트는 없지만....ㅜㅠ 제발~~~ 도와주세요... 3일째 밤샜답니다.ㅜㅠ
  • 복사

댓글 전체

index.php 에서 다른 페이지를 하나더 불러 오시려는거잖아요.

la-no.php 에서 <html>, <head>, <body> 이런 tag 를 포함시키면 index.php 에서 벌써 한번 불러왔는데, 또 불러오니까 에러가 나잖아요.  태그를 다 빼세요.


<html>
<head>
<title>마음까지 따뜻해지는 "JOY CUPS"</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>

이 윗부분 다 삭제하시구요

<body leftmargin="0" topmargin="0"> <- 이거는 불러오는 게시물을 가운데 정렬하실려고 한건데 이렇게 하시면 크롬에서는 정상적으로 보이지만, IE8 에서 아마 페이지가 오른쪽으로 확 밀리거에요.


<table width="250"><tr><td bgcolor="#00CC66" width="100%">
<?=latest("enaksu", "notice", 5, 60); ?>

이 아래 부분도 다 삭제하시구요.
</body>
</html>

=======================

<table width="250"><tr><td bgcolor="#00CC66" width="100%">
<?=latest("enaksu", "notice", 5, 60); ?>
</td></tr></table>


=======================

이렇게만 넣으시면 에러메세지 사라지고 정상적으로 출력됩니다.
cshop 님~~~ 정말 감사합니다.... 해결 되었어요..
님 말씀대로 하니 되네요~~~
제가 이틀 밤새서 비몽사몽 하는 가운데 읽고 해서 세상에 윗소스까지 싹 지운거 있쬬~
정말 감사합니다~~~ 정말 감사해용~
잘 되셨으니 다행입니다.  답변채택하기를 누르셔야 또 질문글 올리실 수 있으세요. ^^

그리고 웹사이트 만드실때 꼭 브라우저 IE 말고 크롬하고 firefox 등으로 다 확인하세요.

제 와이프도 사람들이 하루에 수백명~ 천명이상 들어가는 취미생활/동호회 같은 사이트를 가는데, IE 만 정상으로 보이고,

크롬, firefox 에서는 페이지가 다 밀리고 깨지는데도 웹페이지 주인되시는 분이 모르시더라구요.  IE 에서만 잘되면 그걸로 끝인줄 아는 분들이 많으셔서요....

브라우저 최소 두개 이상에서 꼭 확인하세요. ㅋㅋ  저는 그 문제 때문에, 아예 그누보드 부터 다시 깔아야 했습니다. ㅠㅠ
© SIRSOFT
현재 페이지 제일 처음으로