매인오류해결좀부탁드림니다 어재두올렷는대 해결이안돼서요 ㅠㅠ

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

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

어재질문을 드려서 소니제로님이 답변을해주셧는대 또다른오류가생겻내요 ㅠㅠ
재가 초보라서리 좀쉽게 설명을해주셧으면합니다 오류내용은
Warning: Cannot modify header information - headers already sent by (output started at /home3/chosim/www/g4/common/topScriptAndStyle.php:1) in /home3/chosim/www/g4/lib/common.lib.php on line 109
입니다 topScriptAndStyle.php<<요놈 내용은 파일첨부할태니 수정할부분을
좀자세히 너무초보라서 ㅠㅠ 힘드내요 오늘은 꼭해결돼길 ㅠㅠ
어재 올린글입니다 http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=88991&page=2

첨부파일

topScriptAndStyle.php (1.4 KB) 7회 2008-04-09 09:46
|

댓글 12개

MM_reloadPage(true);
//-->
</script>

<html>
<head>
<title>초심메인</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>

이런식으로 되어있는데.

위 스타일시트부터 스크립트 등. 해당 코드는 헤드사이에 넣거나 바디에 넣으세용.
유아원님이 올려주신
MM_reloadPage(true);
//-->
</script>
이부분을 위쪽에다 붙이라는 소린가요?ㅜㅜ
어느부분에다붓이라고하시는건지
chomain.php<<상단부분입니다 어느부분을 어떻게수정하는지 정확히좀알려주새요 ㅠㅠ
완전초보입니다 ㅠㅠ
<?
include_once("./common/topScriptAndStyle.php");
?>


<html>
<head>
<title>초심메인</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- 게시판 인클루드부분 -->
<div id="Layer1">
<table>
<tr width="500" height="180">
<td>
<?
include_once("./common/topScriptAndStyle.php");
?>
이거 맨 앞에 공백이 하나 있나 봅니다.
http://search.naver.com/search.naver?where=nexearch&query=html+%B1%E2%BA%BB%C0%DB%BC%BA&btnSearch.x=0&btnSearch.y=0&sm=top_hty&frm=t1
수정을 해서 좀올려주시면 감사하겟습니다 ㅠㅠ
태그를 하나두모르는 초보입니다 ㅠㅠ 디자인쪽이라서리 ㅠㅠ
엑스엠엘님이 말슴하신것은 공백확인은 햇습니다 공백없습니다 ㅠㅠ
header나 session_start 함수 이전에 html로 공백문자나 기타 문자들이 출력될경우 발생되는
경고입니다. 이부분을 살펴보세요..
<html>
<head>
<title>초심메인</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- 게시판 인클루드부분 -->
<div id="Layer1">
<table>
<tr width="500" height="180">
<td>
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home3/chosim/www/g4/common/topScriptAndStyle.php:1) in <b>/home3/chosim/www/g4/lib/common.lib.php</b> on line <b>109</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home3/chosim/www/g4/common/topScriptAndStyle.php:1) in <b>/home3/chosim/www/g4/lib/common.lib.php</b> on line <b>109</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home3/chosim/www/g4/common/topScriptAndStyle.php:1) in <b>/home3/chosim/www/g4/lib/common.lib.php</b> on line <b>109</b><br />

http://chosim.zc.bz/g4/chomain.php 로딩해서 익스플로러에서 소스보기 하면 다음과 같은 부분이 있는데
topScriptAndStyle.php에서 common.lib.php나 common.php 인클루드 하면서 헤더를 셋팅하는데
이미
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- 게시판 인클루드부분 -->
<div id="Layer1">
<table>
<tr width="500" height="180">
<td>
이처럼 테이블과 관련된 태그가 나온뒤에 header를 세팅하기 때문에 에러가 발생하는것입니다.
topScriptAndStyle.php를 더 윗부분에서 인클루드하시던가 해야될것 같네요
<html>
<head>
<title>초심메인</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<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>
</head>
요렇게 되어야죠.
현재는
<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>

<html>
<head>
<title>초심메인</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
요렇게 되어 있네요.
지영님이 알려주신방법으로 수정햇는대도 에라가 나내요 ㅠㅠ
그리고 Calliope님이 말슴해주신것은 어찌해야하는지 이해를잘못하겟습니다 ㅠㅠ
끙 초보다보니 애휴
<html>
<head>
<title>초심메인</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>

위 부분이 두번 나오네요. 소스보기 해 보세요.
시작을 알리는 <html> 태그 이전에 어떤것도 나와서는 안됩니다.
빈 공백, 빈줄, 눈에 보이지 않는 모든 공백 등등 어떤것도 나오면 안됩니다.
두번째 <html> 이전에 <html> 이 나오므로 해더가 전송되었기때문에
에러가 나는듯한데요.


<html>
<head>
<title>초심메인</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<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>
</head>

<html>
<head>
<title>초심메인</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
그냥 대충 읽어봤었는데
올려주신 소스 열어보니까 그냥 css랑 자바스크립트네요..
css나 자바스크립트는 .css파일과.js파일로 만들어서
<script src="XXX.js"></script>로 css는 지금 태그가 기억이 안나는데
아무튼 파일로 따로 빼서 인클루드 하시기 바랍니다..
위 방법은 그다지 정상적인 방법은 아닌거 같네요..

위 에러에 대한 정확한 답변을 원하시면
chomain.php를 올려주시기 바랍니다..
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 1,545
17년 전 조회 1,554
17년 전 조회 1,514
17년 전 조회 1,830
17년 전 조회 1,563
17년 전 조회 1,440
17년 전 조회 1,509
17년 전 조회 1,529
17년 전 조회 1,511
17년 전 조회 1,272
17년 전 조회 1,031
17년 전 조회 1,526
17년 전 조회 1,508
17년 전 조회 2,228
17년 전 조회 915
17년 전 조회 982
17년 전 조회 965
17년 전 조회 714
17년 전 조회 863
17년 전 조회 811
🐛 버그신고