이 에러좀 봐주세요~~

http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=12780
이 주소의 팁을 이용해
extend/super.php
<?
// 최고관리자
if ($member[mb_id] == 'cycity') $is_admin = 'super';
?>
이렇게 만들었습니다.

이렇게 적용을 하니까 홈페이지 전체 페이지에

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/gwangd/www/gbbs/extend/super.php:4) in /home/hosting_users/gwangd/www/gbbs/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/gwangd/www/gbbs/extend/super.php:4) in /home/hosting_users/gwangd/www/gbbs/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/gwangd/www/gbbs/extend/super.php:4) in /home/hosting_users/gwangd/www/gbbs/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/gwangd/www/gbbs/extend/super.php:4) in /home/hosting_users/gwangd/www/gbbs/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/gwangd/www/gbbs/extend/super.php:4) in /home/hosting_users/gwangd/www/gbbs/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/gwangd/www/gbbs/extend/super.php:4) in /home/hosting_users/gwangd/www/gbbs/head.sub.php on line 38

이런식의 에러가 뜹니다.
이부분 에러는

// 자바스크립트에서 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

이부분이 되는데
extend/super.php 이것을 적용 하기 전에는 안뜨고 적용후에는 뜨게 됩니다.
이부분이 어떤 중요한 구문인지 몰라서 주석 처리도 못하고 있는데.. 주석 처리 말고 더 좋은 방법 없을까요?
|

댓글 3개

extend/super.php 파일에

<?

?>

php 코드 말고 코드 밖 부분에 공백, 엔터가 있는지 살펴보시고 삭제해 주세요
<?
if ($member[mb_id] == 'cycity') $is_admin = 'super';
?>
이렇게 전혀 필요 없는 공백이 들어가 있지 않습니다. ㅠ.ㅠ;
진서기님 감사합니다.

// 주석
이부분이 잘못 되었네요.. 주석을 지우니 정상 작동 됩니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
16년 전 조회 1,227
16년 전 조회 983
16년 전 조회 838
16년 전 조회 826
16년 전 조회 942
16년 전 조회 1,558
16년 전 조회 974
16년 전 조회 893
16년 전 조회 1,184
16년 전 조회 1,532
16년 전 조회 974
16년 전 조회 971
16년 전 조회 896
16년 전 조회 974
16년 전 조회 783
16년 전 조회 787
16년 전 조회 850
16년 전 조회 1,019
16년 전 조회 1,555
16년 전 조회 971