테스트 사이트 - 개발 중인 베타 버전입니다

안녕하세요 홈페이지 제작중인데요 최신글 불러오기좀 여쭤볼께영...

· 13년 전 · 1568 · 2
Untitled-3.jpg
일단 여차 저차 최신글을 불러온듯한데 위에에러메시지 왜그런거에여??????

여기 저기 검색해서
<html xmlns="http://www.w3.org/1999/xhtml">

<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>


<head>

헤드위에 넣었구요.

바디부분 div 게시판들어갈부분은

<div id="left01">
<?

<? echo latest("basic",'table1', 5, 26); ?>
</div>

보드위치는 /board 에 있구요

에러가 나더라구요... 최종적으론 여기에 최신글을 불러온후 실시간으로 롤링되는걸 넣을꺼거든요..

많은 고수님들 답변 부탁드려요 ^^


맨위에 뜨는에러
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/desport/www/index.html:4) in /home/hosting_users/desport/www/board/common.php on line 8

_common.php -----index.html있는 경로에 만들었구요 내용은
<?
$g4_path = "./board"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 2개

head.php 안에

include_once("$g4[path]/head.sub.php");

아래 다른 include 파일들을 넣어주시구요.

header 지정된 소스가 있는지 확인해주세요~
13년 전
ㅎㅎ 해결됐습니다

<html xmlns="http://www.w3.org/1999/xhtml">

<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

이걸
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

<html xmlns="http://www.w3.org/1999/xhtml">

이렇게하니깐 오류가 없어지네여.

게시글 목록

번호 제목
284348
284336
284333
284332
284320
284318
284316
284313
284307
284306
284303
284298
284296
284290
284286
284280
284277
284272
284261
284259