이거 왜? 뜨는지 > 그누4 질문답변

그누4 질문답변

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

이거 왜? 뜨는지 정보

이거 왜? 뜨는지

본문

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/sites/by/html/g4/head.php:1) in /usr/local/sites/by/html/g4/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/sites/by/html/g4/head.php:1) in /usr/local/sites/by/html/g4/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/sites/by/html/g4/head.php:1) in /usr/local/sites/by/html/g4/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/sites/by/html/g4/head.php:1) in /usr/local/sites/by/html/g4/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/sites/by/html/g4/head.php:1) in /usr/local/sites/by/html/g4/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/sites/by/html/g4/head.php:1) in /usr/local/sites/by/html/g4/head.sub.php on line 38
아시는분 좀 가르처주세요 !! 참고로 전 왕초보 입니다.
  • 복사

댓글 전체

<? 뒤에 빈칸이 존재 하거나..
include 선언문 바로위에 공백 혹은 주석문이 존재해서 발생할 수 있습니다..
혹은 head.sub.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");

이부분이 잘못됏다는데 잘모르겠네요
위 코드가 head.php 첫 부분인가요?

head.sub.php에 보시면 이런 내용들이 있는데 겹치는 것은 어떻게 해야할지 모르겠네요.

우선은 head.sub.php을 head.php <HTML 앞으로 옮기세요.
head.php 첫부분은

<script language="JavaScript">
<!--
function na_preload_img()
{
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null)
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length-1; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  }
}

function na_change_img_src(name, nsdoc, rpath, preload)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  }
}

function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  }
}

// -->
</script>
이거 입니다.
저기 위에 쓴건 head.sud.php에 있는거고요
© SIRSOFT
현재 페이지 제일 처음으로