외부로그인 출력시... 오류 > 그누4 질문답변

그누4 질문답변

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

외부로그인 출력시... 오류 정보

외부로그인 출력시... 오류

본문

외부로그인 출력시에

// 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면
// 캐쉬의 내용을 가져옴. 완전한지는 검증되지 않음
/***********************************************************
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
***********************************************************/

이 부분의 용도가 무엇 인가요??
이 부분 주석을 안하면 오류가 나는데요... 주석을 하니 아웃로긴 설치가 되네요...
오류 부분은

Warning: Cannot modify header information - headers already sent by (output started at /home/gnu/public_html/inc/top.html:7) in /home/gnu/public_html/gnuboard4/head.sub.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /home/gnu/public_html/inc/top.html:7) in /home/gnu/public_html/gnuboard4/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/gnu/public_html/inc/top.html:7) in /home/gnu/public_html/gnuboard4/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/gnu/public_html/inc/top.html:7) in /home/gnu/public_html/gnuboard4/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/gnu/public_html/inc/top.html:7) in /home/gnu/public_html/gnuboard4/head.sub.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /home/gnu/public_html/inc/top.html:7) in /home/gnu/public_html/gnuboard4/head.sub.php on line 39


header 관련인거 같은데.. 제가 header 하고  meta 하고 용도를 전혀 모르거든요 ;;; 허접해서리...
무엇이 문제인지 궁금 합니다.
답변 부탁 드립니다.
  • 복사

댓글 전체

http://sir.co.kr/bbs/tb.php/g4_tiptech/2794 에 보시면
<?=outlogin("스킨명");?> 한 줄 적기 위해서
<?
$g4_path = ".";
include_once("$g4_path/_common.php");
$g4[title] = "제목";
include_once("$g4[path]/head.sub.php");  <=== 여기에 ( head.sub.php on line 39 )
include_once("$g4[path]/lib/outlogin.lib.php");
?>
를 합니다. 이 안에 header()함수들이 있습니다.
그 쪽으로 옮겨 주세요. 어쩌면 중복일 수도 있구요.
© SIRSOFT
현재 페이지 제일 처음으로