이런 에러메시지는 어떻게 잡아요? 정보
이런 에러메시지는 어떻게 잡아요?
본문
에러 메시지
Warning: Cannot modify header information - headers already sent by (output started at D:\APM\htdocs\g4\index.php:1) in D:\APM\htdocs\g4\head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at D:\APM\htdocs\g4\index.php:1) in D:\APM\htdocs\g4\head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at D:\APM\htdocs\g4\index.php:1) in D:\APM\htdocs\g4\head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at D:\APM\htdocs\g4\index.php:1) in D:\APM\htdocs\g4\head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at D:\APM\htdocs\g4\index.php:1) in D:\APM\htdocs\g4\head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at D:\APM\htdocs\g4\index.php:1) in D:\APM\htdocs\g4\head.sub.php on line 38
위와같은 에러메시지가 일반페이지에서만 보이고, 게시판으로 들어가면 사라지는데,
어떻게 잡아야 하나요?
Warning: Cannot modify header information - headers already sent by (output started at D:\APM\htdocs\g4\index.php:1) in D:\APM\htdocs\g4\head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at D:\APM\htdocs\g4\index.php:1) in D:\APM\htdocs\g4\head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at D:\APM\htdocs\g4\index.php:1) in D:\APM\htdocs\g4\head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at D:\APM\htdocs\g4\index.php:1) in D:\APM\htdocs\g4\head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at D:\APM\htdocs\g4\index.php:1) in D:\APM\htdocs\g4\head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at D:\APM\htdocs\g4\index.php:1) in D:\APM\htdocs\g4\head.sub.php on line 38
위와같은 에러메시지가 일반페이지에서만 보이고, 게시판으로 들어가면 사라지는데,
어떻게 잡아야 하나요?
댓글 전체
head.sub.php에서 include 된 파일을 일반 페이지에서 이중으로 인클루드 시켜서 그런듯 하네요..

head.sub.php 파일에서 걍 주석처리해서 해결하였습니다..
문제가 있을지는 모르지만 일단은 잘 작동하네요..
문제가 있을지는 모르지만 일단은 잘 작동하네요..

자문자답...^^
원인을 찾았습니다..
utf-8 버전인데 _common.php 파일이 utf-8 로 변환이 되어있지 않았더군요..
utf-8 버전이라서 그부분을 검토해보지않아서 원인을 못찾고 있었군요...^^
원인을 찾았습니다..
utf-8 버전인데 _common.php 파일이 utf-8 로 변환이 되어있지 않았더군요..
utf-8 버전이라서 그부분을 검토해보지않아서 원인을 못찾고 있었군요...^^
photofly님 저도 같은 에러가 나는데요,,
utf-8 버전으로 어떻게 바꾸어야 하나요 ㅠㅠ
utf-8 버전으로 어떻게 바꾸어야 하나요 ㅠㅠ

notepad로 파일을 열어서 file->save as 그리고 encoding 에서 utf-8을 선택하고 저장하면 됩니다.
영문 xp라서 한글로 뭔지 잘 몰라서 이렇게 적은것이니 양해해주세요.
만일 Ultraedit가 있다면 FILE->Conversions->ascii to utf-8 로 바꾸어도 됩니다.
단, 전 위의 방법으로 해결이 되지 않네요...
심히 고민중입니다. 일단 주석 처리를 해버렸는데 ... 좀 불안하네요.
영문 xp라서 한글로 뭔지 잘 몰라서 이렇게 적은것이니 양해해주세요.
만일 Ultraedit가 있다면 FILE->Conversions->ascii to utf-8 로 바꾸어도 됩니다.
단, 전 위의 방법으로 해결이 되지 않네요...
심히 고민중입니다. 일단 주석 처리를 해버렸는데 ... 좀 불안하네요.