채택완료

새로운 페이지에서 최신글 추출 방법

2016-02-05 (금) 10:26:03 3,774

메인.html

ㄴbbs (이 폴더 안에 그누보드가 깔려있습니다)

  ㄴadm

  ㄴbbs

  ㄴ등등...

ㄴm

  ㄴindex.php

이런 구조인데요. m/index.php 에서 최신글을 추출하려고

<?php

include_once('../bbs/common.php');

include_once(G5_LIB_PATH.'/latest.lib.php'); 

echo latest("basic", "board", 5, 50); //

?>

이 소스를 적용했습니다.

그런데 내용은 추출되지만 css가 안먹으면서 추출되는 내용 위에 아래같은 에러문구가 뜹니다.

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 8 

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 579 

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 581 

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 582 

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 583 

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 584 

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 585

뭐가 문제일까요 ㅠ0ㅠ

|

답변 2개

채택된 답변
+20 포인트

왜 그렇게 하셨는지는 모르겠지만 경로들에 문제가 생겼을 듯 하고

Cannot modify header information - headers already sent 경고는 여러 원인이 있을 수 있습니다. 

다음을 참조해 보세요.

http://egloos.zum.com/totoriver/v/3387009 

중복으로 불러온거 같습니다.

m쪽 헤더나 테일 쪽 봐보세요 같은 경로로 불러온게있을듯합니다만..

답변을 작성하려면 로그인이 필요합니다.