매인화면 초보자오류문재해결좀부탁드림니다 ㅠㅠ > 그누4 질문답변

그누4 질문답변

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

매인화면 초보자오류문재해결좀부탁드림니다 ㅠㅠ 정보

매인화면 초보자오류문재해결좀부탁드림니다 ㅠㅠ

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : http://chosim.zc.bz/g4/chomain.php

어떤때는 오류가나타나고 어떤때는 안나타나고하내요
저랑 같은 오류가 난다는 글을 다읽어봣는대 먼소린지 잘모르갯어요 ㅠㅠ
Warning: Cannot modify header information - headers already sent by (output started at /home3/chosim/www/g4/chomain.php:5) in /home3/chosim/www/g4/lib/common.lib.php on line 109
이런 오류가 어떤 컴에서는 뜨고 어떤컴에서는 안뜨고하내요 ㅠㅠ
초보자가 좀알아듯기 쉽게 설명좀해주새요 ㅠㅠ 부탁드림니다
common.lib.php on line 109<<내용입니다 104~110번까지내용입니다
104: // 쿠키변수 생성
105: function set_cookie($cookie_name, $value, $expire)
106: {
107: global $g4;
108:
109:    setcookie(md5($cookie_name), base64_encode($value), $g4[server_time] + $expire, '/', $g4[cookie_domain]);
110:}
어디부분을 수정해야하는지 좀알려주새요 쉽개^^
  • 복사

댓글 전체

<html>
<head>
<title>초심메인</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<?
include_once("./common/topScriptAndStyle.php");
?>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- 게시판 인클루드부분 -->
<div id="Layer1">
<table>
<tr width="500" height="180">
<td>
<?
include_once("./te1.php");
?>
</td>
</tr>
</table>
</div>
<div id="Layer2">
<table>
<tr width="350" height="210">
<td>
<?
include_once("./te2.php");
?>
상단부분입니다
common.lib.php 에서 쿠키나 세션을 생성하려구 하는데 그전에 출력이 있어서 에러가 난것입니다.

topScriptAndStyle.php 이파일을 열어보세요 혹시 common.lib.php파일을 인클루드 하고 있지 안나요?

위 소스를 보면 topScriptAndStyle.php파일을 인클루드 하기 이전에 html 이 출력되고 있죠?

<html>
<head>
<title>초심메인</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<?
include_once("./common/topScriptAndStyle.php");
?>
</head>
이부분을 아래와 같이 바꿔보세요
<?
include_once("./common/topScriptAndStyle.php");
?>

<html>
<head>
<title>초심메인</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
이렇게 하시면 에러가 안날껍니다..혹시 topScriptAndStyle.php파일에 common.lib.php가 없다면
te1.php 나 te2.php 에 인클루드 되고 있을수도 있겠군요..
이정도면 혼자 해결하실수 있겠죠?
소니님 말슴대로 수정햇더니 topScriptAndStyle.php<<요파일애러가뜨내요
초보라서리 topScriptAndStyle.php<<요파일보여드릴태니 한번만더 도움좀부탁드려용^^;;
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:288px;
top:976px;
width:502px;
height:172px;
z-index:1;
}
#Layer2 {
position:absolute;
left:287px;
top:484px;
width:347px;
height:178px;
z-index:2;
}
#Layer3 {
position:absolute;
left:287px;
top:493px;
width:339px;
height:31px;
z-index:3;
}
#Layer4 {
position:absolute;
left:288px;
top:730px;
width:339px;
height:205px;
z-index:3;
}
#Layer5 {
position:absolute;
left:138px;
top:498px;
width:218px;
height:238px;
z-index:4;
}
#Layer6 {
position:absolute;
left:25px;
top:477px;
width:154px;
height:221px;
z-index:4;
}
#Layer7 {
position:absolute;
left:27px;
top:766px;
width:220px;
height:71px;
z-index:5;
}
#Layer8 {
position:absolute;
left:27px;
top:865px;
width:196px;
height:85px;
z-index:6;
}
#Layer9 {
position:absolute;
left:30px;
top:961px;
width:236px;
height:201px;
z-index:7;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
부탁드림니다 (_ _)
© SIRSOFT
현재 페이지 제일 처음으로