그누보드 초보랍니다 ㅠㅠ 최근게시물 하는중 오류가 계속되서요.. 정보
그누보드 초보랍니다 ㅠㅠ 최근게시물 하는중 오류가 계속되서요..본문
그누보드 설치를하고 상위 폴더에 내용을 넣으려고 하는데
ftp에서 상위로 안올라가져서 그냥 gnuboard4폴더에 그대로 둔 상태입니다.
게시판 설치는<div> 이용해서 제가 만든 파일에 적용시켜둬서 잘 되고 있습니다.
참고: http://internet11.co.kr/sub_board01.html
그런데 메인(index.html)에 제가 원하는 자리에 최근게시물을 빼려고
설치운영 메뉴얼보고 따라해봐도 안되고, 질문답변 게시판을 하루종일 뒤져가면서
찾아낸 아래 방법으로 최근게시물 빼는것까지는 성공했는데요
index.html 파일 내용
상단
<?
include_once("./_common.php");
$g4['title'] = "최신글 페이지 입니다.";
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
게시물위치
<?=latest("basic", "board", 5, 70)?>
_common.php파일 내용
<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
아래의 에러메시지가 메인 상단에 뜨고요, 첨부파일에서처럼 게시물 타이틀과 폼 그대로 다 따라 나오네요...그리고 클릭하면 원래 게시판 있는곳으로 가고요 전 레이어로 제가 만든 페이지에 넣은건데.. 첨부파일 보시면 아시겠지만 텍스트만 불러와졌으면 좋겠는데요...
어느부분이 잘못된건지... index.html의 상단 내용중 하나씩 지워가면서 테스트해봤는데
텍스트만 나올때는 글자가 깨져나오기도 하고...왜이케 안되는걸까요?
자상한 설명 부탁드립니다.
Warning: Cannot modify header information - headers already sent by (output started at /home/sogumgang/html/_common.php:5) in /home/sogumgang/html/gnuboard4/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/sogumgang/html/_common.php:5) in /home/sogumgang/html/gnuboard4/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /home/sogumgang/html/_common.php:5) in /home/sogumgang/html/gnuboard4/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/sogumgang/html/_common.php:5) in /home/sogumgang/html/gnuboard4/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/sogumgang/html/_common.php:5) in /home/sogumgang/html/gnuboard4/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/sogumgang/html/_common.php:5) in /home/sogumgang/html/gnuboard4/head.sub.php on line 38
ftp에서 상위로 안올라가져서 그냥 gnuboard4폴더에 그대로 둔 상태입니다.
게시판 설치는<div> 이용해서 제가 만든 파일에 적용시켜둬서 잘 되고 있습니다.
참고: http://internet11.co.kr/sub_board01.html
그런데 메인(index.html)에 제가 원하는 자리에 최근게시물을 빼려고
설치운영 메뉴얼보고 따라해봐도 안되고, 질문답변 게시판을 하루종일 뒤져가면서
찾아낸 아래 방법으로 최근게시물 빼는것까지는 성공했는데요
index.html 파일 내용
상단
<?
include_once("./_common.php");
$g4['title'] = "최신글 페이지 입니다.";
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
게시물위치
<?=latest("basic", "board", 5, 70)?>
_common.php파일 내용
<?
$g4_path = "./gnuboard4"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
아래의 에러메시지가 메인 상단에 뜨고요, 첨부파일에서처럼 게시물 타이틀과 폼 그대로 다 따라 나오네요...그리고 클릭하면 원래 게시판 있는곳으로 가고요 전 레이어로 제가 만든 페이지에 넣은건데.. 첨부파일 보시면 아시겠지만 텍스트만 불러와졌으면 좋겠는데요...
어느부분이 잘못된건지... index.html의 상단 내용중 하나씩 지워가면서 테스트해봤는데
텍스트만 나올때는 글자가 깨져나오기도 하고...왜이케 안되는걸까요?
자상한 설명 부탁드립니다.
Warning: Cannot modify header information - headers already sent by (output started at /home/sogumgang/html/_common.php:5) in /home/sogumgang/html/gnuboard4/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/sogumgang/html/_common.php:5) in /home/sogumgang/html/gnuboard4/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /home/sogumgang/html/_common.php:5) in /home/sogumgang/html/gnuboard4/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/sogumgang/html/_common.php:5) in /home/sogumgang/html/gnuboard4/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/sogumgang/html/_common.php:5) in /home/sogumgang/html/gnuboard4/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/sogumgang/html/_common.php:5) in /home/sogumgang/html/gnuboard4/head.sub.php on line 38
댓글 전체
아 그리고 index.html 이라서 그런가 싶어서 test.php로 만들어서도 해봤는데 역쉬 안됐거든요
파일 형식도 문제가 될까요?
파일 형식도 문제가 될까요?
위에 Warning이 말하는건
head.sub.php 파일의 32번줄부터~ 38번줄까지 오류라는 내용입니다.
그구간 한번 잘 살펴보시구요
index.html 을 index.php 로 바꿔보시고
아래와 같이 바꿔보신후 한번 적용해 보시길..
제가 파일을 못봐서 도와드리질 못하겠네요...
<?
include_once("./_common.php");
$g4['title'] = "최신글 페이지 입니다.";
include_once("$g4[path]/head.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
head.sub.php 파일의 32번줄부터~ 38번줄까지 오류라는 내용입니다.
그구간 한번 잘 살펴보시구요
index.html 을 index.php 로 바꿔보시고
아래와 같이 바꿔보신후 한번 적용해 보시길..
제가 파일을 못봐서 도와드리질 못하겠네요...
<?
include_once("./_common.php");
$g4['title'] = "최신글 페이지 입니다.";
include_once("$g4[path]/head.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
header("Content-Type: text/html; charset=$g4[charset]");
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0"); // rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
<?
include_once("./_common.php");
$g4['title'] = "최신글 페이지 입니다.";
include_once("$g4[path]/head.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
이대로 넣었는데 결과는 마찬가진거 같아요
head.sub.php 파일의 32번줄부터~ 38번줄까지 오류라고 하셔서 봤는데 저렇게 되어있더라고요
봐도 영 어디가 잘못됐는지 모르겠더라고요...그리고 html을 php로 바꿔서 테스트 하니까
위에 오류 메시지 그대로뜨고요 관리자 화면의 로그인창 등 상단+좌측 이미지가 더해서 나오네요 ㅠㅠ
제 글 읽고 답변해주셔서 감사해요 근데 제가 따라주질 못하는지 ㅠㅠ 죄송합니다.
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0"); // rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
<?
include_once("./_common.php");
$g4['title'] = "최신글 페이지 입니다.";
include_once("$g4[path]/head.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
이대로 넣었는데 결과는 마찬가진거 같아요
head.sub.php 파일의 32번줄부터~ 38번줄까지 오류라고 하셔서 봤는데 저렇게 되어있더라고요
봐도 영 어디가 잘못됐는지 모르겠더라고요...그리고 html을 php로 바꿔서 테스트 하니까
위에 오류 메시지 그대로뜨고요 관리자 화면의 로그인창 등 상단+좌측 이미지가 더해서 나오네요 ㅠㅠ
제 글 읽고 답변해주셔서 감사해요 근데 제가 따라주질 못하는지 ㅠㅠ 죄송합니다.
좀 도와드리고 싶은데 방법이 없네요...
일단 쉽게 이렇게 생각해보시길
처음 그누보드 설치하셨을때 뜨는 인덱스 파일 index.php 파일이 있을꺼에요
거기에 필요한 부분만 하나하나 넣어서 테스트 해보시길
정 힘드시면 index 전체 소스 올려주세요
미천한 실력이지만
한번 확인해볼게요 ^^
일단 쉽게 이렇게 생각해보시길
처음 그누보드 설치하셨을때 뜨는 인덱스 파일 index.php 파일이 있을꺼에요
거기에 필요한 부분만 하나하나 넣어서 테스트 해보시길
정 힘드시면 index 전체 소스 올려주세요
미천한 실력이지만
한번 확인해볼게요 ^^
친절하게 답변해주셔서 정말 갑사합니다.
일단 제가 ftp에서 gnuboard4에 있던 내용을 상위폴더로 옮겨놓고 다시 소스 삽입하니까 에러메시지는 이제 뜨지 않구요.
문제는 http://internet11.co.kr/index.html 여기 들어가보시면 최근게시물 나와져 있는게 있습니다.
그걸 클릭하면 http://internet11.co.kr/bbs/board.php?bo_table=board&wr_id=2 로가면서 게시판만 떨렁 나옵니다. 게시판 수정에서 보니까 상단/하단 경로 입력해주는곳이 있어서
../head.php(상단)../tail.php(하단) 이런식으로 하면 된다기에 그렇게 적용했더니 그누보드에서 기본으로 제공하는 틀이 적용되더라고요...제가 따로 만든 top.html이랑 footer.html 이란 파일을 가지고 상단과 하단으로 넣으니까 아예 안떠요. 꼭 head.php나 tail.php를 사용해야 하나요?
파일명을 같게하고 제가 제작한 상단과 하단 파일 내용을 그대로 적용시켜도 뜨지 않고요..
제일 하고 싶은건 제가 만든 상단파일, 하단파일을 그대로 적용시켜서 나오게 되면 좋을거 같은데..
head.php들어가서 파일내용 조금씩 수정해봐도 복잡하고 틀도 안맞고 그래서요..
일단 제가 ftp에서 gnuboard4에 있던 내용을 상위폴더로 옮겨놓고 다시 소스 삽입하니까 에러메시지는 이제 뜨지 않구요.
문제는 http://internet11.co.kr/index.html 여기 들어가보시면 최근게시물 나와져 있는게 있습니다.
그걸 클릭하면 http://internet11.co.kr/bbs/board.php?bo_table=board&wr_id=2 로가면서 게시판만 떨렁 나옵니다. 게시판 수정에서 보니까 상단/하단 경로 입력해주는곳이 있어서
../head.php(상단)../tail.php(하단) 이런식으로 하면 된다기에 그렇게 적용했더니 그누보드에서 기본으로 제공하는 틀이 적용되더라고요...제가 따로 만든 top.html이랑 footer.html 이란 파일을 가지고 상단과 하단으로 넣으니까 아예 안떠요. 꼭 head.php나 tail.php를 사용해야 하나요?
파일명을 같게하고 제가 제작한 상단과 하단 파일 내용을 그대로 적용시켜도 뜨지 않고요..
제일 하고 싶은건 제가 만든 상단파일, 하단파일을 그대로 적용시켜서 나오게 되면 좋을거 같은데..
head.php들어가서 파일내용 조금씩 수정해봐도 복잡하고 틀도 안맞고 그래서요..
<Script language='javascript' src='flash.js'></Script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><table width="1000" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><script language=JavaScript>showFlash("../flash/logo.swf","232","92")</script></td>
<td align="right"><script language=JavaScript>showFlash("../flash/navi.swf","668","58")</script></td>
</tr>
</table></td>
</tr>
<tr>
<td height="5"></td>
</tr>
<tr>
<td><script language=JavaScript>showFlash("../flash/main.swf","100%","344")</script></td>
</tr>
</table></td>
</tr>
</table>
이게 제가 상단에 넣고 싶은 파일 내용이랍니다.(top.html)
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><table width="1000" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><script language=JavaScript>showFlash("../flash/logo.swf","232","92")</script></td>
<td align="right"><script language=JavaScript>showFlash("../flash/navi.swf","668","58")</script></td>
</tr>
</table></td>
</tr>
<tr>
<td height="5"></td>
</tr>
<tr>
<td><script language=JavaScript>showFlash("../flash/main.swf","100%","344")</script></td>
</tr>
</table></td>
</tr>
</table>
이게 제가 상단에 넣고 싶은 파일 내용이랍니다.(top.html)